In MongoDB 8.0 there will be an aggregation stage $aggregateClusterCatalog that allows customers to fetch the current shard key for a sharded collection without reading directly of the config server.
It would be nice if customers could leverage use a shell helper to run the aggregation without having to construct a full pipeline.
- related to
-
SERVER-5425 Create shell helper to display the current shard key
- Closed