-
Type: New Feature
-
Resolution: Duplicate
-
Priority: Major - P3
-
Affects Version/s: 1.21.2
-
Component/s: None
-
None
-
Not Needed
-
Updating a document in a collection sharded on the `bucket` field:
In `compass-crud` this is because our filter query only supplies `_id` and not the shard key:
https://github.com/mongodb-js/compass-crud/blob/master/src/stores/crud-store.js#L343
I don't think the data service currently gives us the collection's shard key, but we should be able to query it from the config -> collections collection (key object in each document). This ticket involves identifying when we're in a sharded collection/environment, and supplying the shard key in related queries.
Related help ticket: https://jira.mongodb.org/browse/HELP-17211
- duplicates
-
COMPASS-4478 Support for updates in sharded collections
- Closed