We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dbdb61 commit 6d81e80Copy full SHA for 6d81e80
articles/cosmos-db/mongodb/vcore/partitioning.md
@@ -102,7 +102,7 @@ Consider the following document within the 'cosmicworks' database and 'employee'
102
The following sample shards the employee collection within the cosmicworks database on the firstName property.
103
```javascript
104
use cosmicworks;
105
-sh.shardCollection("cosmicworks.employee", {"firstName": 1})
+sh.shardCollection("cosmicworks.employee", {"firstName": "hashed"})
106
```
107
108
The service doesn't index the shard key by default. Once the collection is sharded an index must be explicitly created on the shard key property.
0 commit comments