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

Clarify the semantics of `updatedExisting` in the findAndModify command

    XMLWordPrintableJSON

Details

    Description

      Description

      The documentation for the updatedExisting field of the findAndModify response, doesn't clearly indicate that updatedExisting will be set to true even if the query predicate matched, but the update operation resulted in no actual write (no-op write).

      We should update the documents to say:
      updatedExisting: Contains true if an update operation modified an existing document or found the document already in the desired end state (and didn't actually perform a write).

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            ian.fogelman@mongodb.com Ian Fogelman
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 15 weeks ago