-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
3
-
Iteration Cuttlefish, Iteration Dolphin, Iteration Eel, Iteration Fish, Iteration Grouper
-
Not Needed
mongosh:
> print(new ObjectId()) ObjectId("6262bc57b1ad62f3a26c5946")
mongosh inside compass:
> print(new ObjectId())
{}
Found while testing change streams:
{ _id: { _data: '826262BB1F000000012B022C0100296E5A1004591C528E4CC8442FA550920B7F718DAD46645F696400646262BB1DFD05AF892E3E07EC0004' }, operationType: 'insert', clusterTime: { low: 1, high: 1650637599, unsigned: true }, fullDocument: { _id: {} }, ns: { db: 'test', coll: 'beforeafter' }, documentKey: { _id: {} } }
See both fullDocument._id and documentKey._id are printed as {} so you can't see which document the change stream event relates to.