Replies: 1 comment
-
Will look into this. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While working on issue #54, I encountered a problem when attempting to insert a value into the
recordingDate
field via a postman request. To verify the deletion functionality, I tried inserting a value and then deleting it using its ID.The validation error occurred whenever I passed
recordingDate
as a normal date from the request body. To address this issue, I manually parsed the date string as a date object and passed it to the insert method in the collection (generic repository).Now, the question is how to elegantly convert a human-readable date to
bsonType: date
. This conversion is essential to handle therecordingDate
field correctly.Beta Was this translation helpful? Give feedback.
All reactions