Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.17.0
-
None
-
Unknown
Description
According to official mongodb documentation sharded key should be specified while upserting:
https://www.mongodb.com/docs/manual/reference/method/db.collection.updateOne/
If you specify upsert: true on a sharded collection, you must include the full shard key in the filter. For additional db.collection.updateOne() behavior on a sharded collection, see Sharded Collections.
Attachments
Issue Links
- links to