You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note how not even createdAt is on the type. Looking at the actual Document, we will see a type that looks like our expected type (with username, date_joined, and no updatedAt field).
The text was updated successfully, but these errors were encountered:
Prerequisites
Mongoose version
6.8.0, 7.0.3
Node.js version
16.17.0
MongoDB server version
5.0.14
Typescript version (if applicable)
4.8.4
Description
Builds on earlier issue #12069 where
Document
andInferSchemaType
does not infer timestamp fields into Typescript types.Renamed timestamp fields are not extracted using
Document
andInferSchemaType
.Steps to Reproduce
Expected Behavior
We expect
MyType
to be:We get:
Note how not even
createdAt
is on the type. Looking at the actual Document, we will see a type that looks like our expected type (with username, date_joined, and no updatedAt field).The text was updated successfully, but these errors were encountered: