Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5767

Mongosh embedded in Compass prints ObjectIds as {}

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.32.6
    • 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.

            Assignee:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: