We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schema = { date: Date, ...
by setting date: null you get date: "1970-01-01T00:00:00.000Z"
The text was updated successfully, but these errors were encountered:
what do you expect? Date means the date type will be enforced, which means null should not be a possible value
Date
null
Sorry, something went wrong.
I expected to behave like Mongoose, where type: Date, allows you to store null.
Is there a way to define the schema prop to accept Date or null?
No branches or pull requests
schema = {
date: Date,
...
by setting date: null you get date: "1970-01-01T00:00:00.000Z"
The text was updated successfully, but these errors were encountered: