Shard Keys
This page is being updated.
RESTHeart v5 introduces many news features, improvements and changes.
As a consequence, this page will be updated soon.
Read Upgrade to v5 for a one-page description of the changes.
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