Looking for Cloud Services or Professional Support? Check restheart.com

Edit Page

Shard Keys

The shard key determines the distribution of the collection’s documents among a cluster’s shards.

When a shared collection has shard key different than _id or a compound shard key, the shardkey query parameter must be used.

Example: if the shard key is X

GET /db/coll/5ac9f95563445900062144aa?shardkey={"X":1} HTTP/1.1