Skip to content

Commit e163890

Browse files
author
Andrew Leung
committed
fixing up spacing in examples
1 parent 0cabed6 commit e163890

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/reference/operator/uniqueDocs.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $uniqueDocs
1616
The :operator:`$uniqueDocs` operator inverts the default behavior
1717
of the :operator:`$within` operator. By default, the
1818
:operator:`$within` operator returns the document only once. If you
19-
specify a value of ``false`` for :operator:`uniqueDocs`, MongoDB
19+
specify a value of ``false`` for :operator:`$uniqueDocs`, MongoDB
2020
will return multiple instances of a single document.
2121

2222
.. example::
@@ -25,21 +25,21 @@ $uniqueDocs
2525

2626
.. code-block:: javascript
2727

28-
{ addresses: [ { name: "Home", loc:[55.5,42.3]}, {name:"Work",loc:[32.3,44.2]}]}
28+
{ addresses: [ { name: "Home", loc: [55.5, 42.3] }, { name: "Work", loc: [32.3, 44.2] } ] }
2929

3030
The following query would return the same document multiple
3131
times:
3232

3333
.. code-block:: javascript
3434

35-
db.addressBook.find( {"addresses.loc":{"$within": {"$box": [ [0,0],[100,100] ], $uniqueDocs:false } }}).pretty()
35+
db.addressBook.find( { "addresses.loc": { "$within": { "$box": [ [0,0], [100,100] ], $uniqueDocs: false } } } )
3636

3737
The following query would return each matching document, only
3838
once:
3939

4040
.. code-block:: javascript
4141

42-
db.addressBook.find( {"address.loc":{"$within": {"$box": [ [0,0],[100,100] ], $uniqueDocs:true } }}).pretty()
42+
db.addressBook.find( { "address.loc": { "$within": { "$box": [ [0,0], [100,100] ], $uniqueDocs: true } } } )
4343

4444
You cannot specify :operator:`$uniqueDocs` with :operator:`$near`
4545
or haystack queries.

0 commit comments

Comments
 (0)