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
Does FeathersJS have a way to store dates as Date instead of String in MongoDB? I'm trying to implement a date check and using the $gte and $lte queries, but the Dates are stored as String in MongoDB.
This is how I am currently storing them, as changing type: string to either type: Date / type: 'date' wont work. createdAt: { type: 'string', format: 'date-time' }, updatedAt: { type: 'string', format: 'date-time' },
The text was updated successfully, but these errors were encountered:
Hello!
Does FeathersJS have a way to store dates as
Date
instead ofString
in MongoDB? I'm trying to implement a date check and using the$gte
and$lte
queries, but the Dates are stored as String in MongoDB.This is how I am currently storing them, as changing
type: string
to eithertype: Date
/type: 'date'
wont work.createdAt: { type: 'string', format: 'date-time' }, updatedAt: { type: 'string', format: 'date-time' },
The text was updated successfully, but these errors were encountered: