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
/** Defines a TTL index on this path. Only allowed for dates. */
expires?: number|NativeDate;
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
mongoose 5.13.5
PS: is it correct to not include SchemaDate (and others) in the documentation? there i could only find SchemaDateOptions under API (and SchemaDateOptions does not have the examples / accepted types from SchemaDate)
The text was updated successfully, but these errors were encountered:
Re: including SchemaDate in documentation, that's worth discussing more. We explicitly exclude them because we don't want to imply that users should be creating SchemaDate instances - most users shouldn't have to be aware of SchemaDate.
Do you want to request a feature or report a bug?
types
What is the current behavior?
SchemaDate jsdoc & examples list that accepted types are
Number | String
mongoose/lib/schema/date.js
Lines 118 to 157 in 80245ed
but types say its
number | Date
(notnumber | string
)mongoose/index.d.ts
Lines 1660 to 1661 in c36bd64
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
mongoose 5.13.5
PS: is it correct to not include
SchemaDate
(and others) in the documentation? there i could only findSchemaDateOptions
underAPI
(andSchemaDateOptions
does not have the examples / accepted types fromSchemaDate
)The text was updated successfully, but these errors were encountered: