Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1902

Create shell helper to display the current shard key

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: sh, Shell API
    • None
    • 2
    • Developer Tools

      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. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.panton@mongodb.com Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: