File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -439,15 +439,15 @@ Consider the following wildcard index on the ``employees`` collection:
439
439
440
440
.. code-block:: javascript
441
441
442
- db.products .createIndex( { "$**" : 1 } )
442
+ db.employees .createIndex( { "$**" : 1 } )
443
443
444
444
The following operation queries for a single field
445
445
``lastName`` and projects out all other fields from the
446
446
resulting document:
447
447
448
448
.. code-block:: javascript
449
449
450
- db.products .find(
450
+ db.employees .find(
451
451
{ "lastName" : "Doe" },
452
452
{ "_id" : 0, "lastName" : 1 }
453
453
)
Original file line number Diff line number Diff line change @@ -349,10 +349,10 @@ field ``ratings`` to require that the array contains at least one
349
349
350
350
Taking the predicates separately:
351
351
352
- - the bounds for the ``score: { $lte: 5 }`` predicate is ``[ -Infinity, 5
353
- ]``;
352
+ - the bounds for the ``score: { $lte: 5 }`` predicate are ``[ [ -Infinity, 5
353
+ ] ] ``;
354
354
355
- - the bounds for the ``by: "anon"`` predicate is ``[ "anon", "anon" ]``.
355
+ - the bounds for the ``by: "anon"`` predicate are ``[ [ "anon", "anon" ] ]``.
356
356
357
357
MongoDB can compound the two bounds to use the combined bounds of:
358
358
You can’t perform that action at this time.
0 commit comments