jit
jit
RRailway
Created by jit on 11/10/2023 in #✋|help
Mongo error: Date set by default in railway server is same within a time frame
My tech stack is Nest JS, Mongo and react. So, In railway I have a schema for a collection in mongo in which there is a field named "dateAdded". Now suppose I created two documents in that same collection. Then both of them have the same time added. And this is only encountered when using railway. How to debug it or correct this behaviour ?? [ { "_id": { "$oid": "654e548514691df1f4dacd73" }, "dateAdded": "2023-11-10T16:04:01.696Z", }, { "_id": { "$oid": "654e54b414691df1f4dacd7b" }, "dateAdded": "2023-11-10T16:04:01.696Z", }, { "_id": { "$oid": "654e54b51480c9fc09a24ded" }, "dateAdded": "2023-11-08T21:42:30.342Z", } ] This is a stripped down example of the collection. where the first two documents were created within a 1-minute time frame. But have the same string. Right down to the last millisecond.
10 replies