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

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

      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.

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

              Created:
              Updated:
              1 year, 25 weeks, 4 days ago