Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2502

replaceOne example in test/examples/update_documents.js incorrect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.4
    • Fix Version/s: 3.6.0
    • Component/s: None
    • Labels:
      None
    • MongoDB Version:
      Not Applicable

      Description

      The replaceOne example uses update operators instead of a replacement document

      https://github.com/mongodb/node-mongodb-native/blob/master/test/examples/update_documents.js#L150-L172

       

      (FYI - I guessed at some of the meta data field)

        Attachments

          Activity

            People

            Assignee:
            neal.beeken Neal Beeken
            Reporter:
            kay.kim Kay Kim (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: