replaceOne example in test/examples/update_documents.js incorrect

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.6.0
    • Affects Version/s: 3.5.4
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Kay Kim (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: