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

replaceOne example in test/examples/update_documents.js incorrect

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0
    • Affects Version/s: 3.5.4
    • Component/s: None
    • None

      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)

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

              Created:
              Updated:
              Resolved: