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
Describe the bug
When an entity with a date attribute is created, the date is stored as an object: { "$date" : 1688702400000 }.
However, when the entity is updated, the date is stored as a string: "2023-07-29T13:46:26.037Z".
The date attributes of the object (entity) being passed to remult.repo().insert() and remult.repo().update() are date instances, according to what I see in the console.
Therefore, it looks like the insert and the update are handling the date differently, not sure if it is remult or mongodb.
Screenshots
Versions
"mongodb": "^5.3.0"
"remult": "^0.22.1"
The text was updated successfully, but these errors were encountered:
Describe the bug
When an entity with a date attribute is created, the date is stored as an object: { "$date" : 1688702400000 }.
However, when the entity is updated, the date is stored as a string: "2023-07-29T13:46:26.037Z".
The date attributes of the object (entity) being passed to remult.repo().insert() and remult.repo().update() are date instances, according to what I see in the console.
Therefore, it looks like the insert and the update are handling the date differently, not sure if it is remult or mongodb.
Screenshots
Versions
The text was updated successfully, but these errors were encountered: