diff --git a/source/core/index-unique.txt b/source/core/index-unique.txt index c3a628deefa..774f9c337ca 100644 --- a/source/core/index-unique.txt +++ b/source/core/index-unique.txt @@ -120,8 +120,8 @@ For example, consider a collection with the following documents: .. code-block:: javascript - { _id: 1, a: [ { loc: "A", qty: 5 }, { qty: 10 } ] } - { _id: 2, a: [ { loc: "A" }, { qty: 5 } ] } + { _id: 1, a: [ { loc: "A", qty: 5 }, { qty: 10 } ] }, + { _id: 2, a: [ { loc: "A" }, { qty: 5 } ] }, { _id: 3, a: [ { loc: "A", qty: 10 } ] } Create a unique compound multikey index on ``a.loc`` and ``a.qty``: