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
I would like to attach a createdAt attribute of type momentjs for a object saved in a mongo collection, and then retrieve this object as is.
The way to achieve this is to create a EJSON type (cf EventedMind).
The text was updated successfully, but these errors were encountered:
Are you sure EJSON support allows you to store objects directly into MongoDB? I thought it is just so that you can pass those objects between client and server directly.
I would like to attach a
createdAt
attribute of typemomentjs
for a object saved in a mongo collection, and then retrieve this object as is.The way to achieve this is to create a EJSON type (cf EventedMind).
The text was updated successfully, but these errors were encountered: