Imposible to save null to date prop
xrado opened this issue · comments
schema = {
date: Date,
...
by setting date: null you get date: "1970-01-01T00:00:00.000Z"
what do you expect? Date
means the date type will be enforced, which means null
should not be a possible value
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?