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

updateMany on a sharded cluster can be issued without specifying the shard key

    XMLWordPrintableJSON

Details

    Description

      Currently, in our docs it states that:

      All update() operations for a sharded collection must include the shard key or the _id field in the query specification. update() operations without the shard key or the _id field return an error.

      This has led some of our students to believe that issuing an updateMany command would also require a shard key. This is not true. To address this confusion, could we do something like

      With the exception of updateMany, all update() operations for a sharded collection must include the shard key or the _id field in the query specification. update() operations without the shard key or the _id field return an error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kirby.kohlmorgen Kirby Kohlmorgen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago