There's no good way to see what the shard key is set up as for a collection.
We should have a shell helper that does this, perhaps db.foo.getShardKey()
- is related to
-
MONGOSH-1902 Create shell helper to display the current shard key
- Needs Triage