Skip to content

Commit 6d81e80

Browse files
authored
Update partitioning.md
1 parent 0dbdb61 commit 6d81e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/mongodb/vcore/partitioning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Consider the following document within the 'cosmicworks' database and 'employee'
102102
The following sample shards the employee collection within the cosmicworks database on the firstName property.
103103
```javascript
104104
use cosmicworks;
105-
sh.shardCollection("cosmicworks.employee", {"firstName": 1})
105+
sh.shardCollection("cosmicworks.employee", {"firstName": "hashed"})
106106
```
107107

108108
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

Comments
 (0)