Skip to content

Commit ebeb944

Browse files
authored
preexisting acrolinx
1 parent ef86dc4 commit ebeb944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/mongodb/indexing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ In the preceding example, omitting the ```"university":1``` clause returns an er
284284
285285
Unique indexes need to be created while the collection is empty.
286286
287-
Unique indexes on nested fields are not supported by default due to limiations with arrays. If your nested field does not contain an array, the index will work as intended. If your nested field contains an array (anywhere on the path), that value will be ignored in the unique index and uniqueness wil not be preserved for that value.
287+
Unique indexes on nested fields are not supported by default due to limitations with arrays. If your nested field does not contain an array, the index will work as intended. If your nested field contains an array (anywhere on the path), that value will be ignored in the unique index and uniqueness will not be preserved for that value.
288288
289289
For example a unique index on people.tom.age will work in this case since there's no array on the path:
290290
```javascript
291291
{ "people": { "tom": { "age": "25" }, "mark": { "age": "30" } } }
292292
```
293-
but won't won't work in this case since there's an array in the path:
293+
but won't work in this case since there's an array in the path:
294294
```javascript
295295
{ "people": { "tom": [ { "age": "25" } ], "mark": [ { "age": "30" } ] } }
296296
```

0 commit comments

Comments
 (0)