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
When I set the value of a date property whose default is set to Date.now to null, the date is not populated and instead populates as 'null'. I created a quick repo you can run to check this out. There is a lot of overhead because I tried to cut it from my existing code and was in a hurry.
When I set the value of a date property whose default is set to Date.now to null, the date is not populated and instead populates as 'null'. I created a quick repo you can run to check this out. There is a lot of overhead because I tried to cut it from my existing code and was in a hurry.
https://github.com/codeHatcher/defaultDateMongooseExample
This is the result, I expected the default date where it says null.
Here is the store in the database. I expect null to equal the default date.
The text was updated successfully, but these errors were encountered: