Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-8337

Comment on: "manual/reference/method/db.collection.findOneAndUpdate.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      In the example provided for 'Update document with Upsert', return document seems to be wrong -

      Returned new document contains "_id" : 5239 whereas the _id field is not present either in query document or in update document. In this case it should contain an objectId assigned by mongod or the driver.

      Attachments

        Activity

          People

            jonathan.destefano@mongodb.com Jonathan DeStefano
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 30 weeks, 2 days ago