https://www.mongodb.com/zh-cn/docs/upcoming/reference/command/shardcollection/
shardCollection (database command) - Database Manual - MongoDB Docs
Distribute documents across shards using the `shardCollection` command, specifying shard keys and optional parameters for initial chunk distribution.
command manualshardcollectiondatabasemongodbdocs
https://www.mongodb.com/docs/manual/reference/method/sh.shardcollection/
sh.shardCollection() (mongosh method) - Database Manual - MongoDB Docs
Shard a collection using a specified shard key to distribute documents across shards, with options for unique constraints and initial chunk distribution.
shmethoddatabasemanualmongodb