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

findAndModify command does not fully describe return value

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      See: http://docs.mongodb.org/manual/reference/command/findAndModify/

      The only reference to the return value is:

      If you specify { new: false } and the upsert operation performs an insert operation, then the operation will return a document that resembles the following:

      { 'ok': 1.0, 'value': null }

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years ago