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

db.collection.insertMany() reference syntax is wrong

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • None
    • None
    • None

    Description

      The syntax currently reads:

      db.collection.insertMany(
         { [ <document 1> , <document 2>, ... ] },
         {
            writeConcern: <document>,
            ordered: <boolean>
         }
      )
      

      There shouldn't be braces around the array of docs.

      Attachments

        Activity

          People

            allison.moore@mongodb.com Allison Reinheimer Moore
            allison.moore@mongodb.com Allison Reinheimer Moore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 5 weeks, 6 days ago