[DOCS-1711] Document that in a sharded cluster update where multi is false only works when the query includes the shard key Created: 16/Jul/13  Updated: 30/Oct/23  Resolved: 17/Sep/13

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 23 weeks, 2 days ago

 Description   

mongos> db.foo.update({},{$set:{a:1}})
For non-multi updates, must have _id or full shard key ({ _id: 1.0 }) in query



 Comments   
Comment by Sam Kleinman (Inactive) [ 09/Sep/13 ]

http://docs.mongodb.org/manual/reference/limits/#Single%20Document%20Modification%20Operations%20in%20Sharded%20Collections

Generated at Thu Feb 08 07:41:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.