Skip to content

Commit a1645f0

Browse files
committed
Update index-wildcard.txt
products --> employees
1 parent e649806 commit a1645f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/core/index-wildcard.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,15 +439,15 @@ Consider the following wildcard index on the ``employees`` collection:
439439

440440
.. code-block:: javascript
441441

442-
db.products.createIndex( { "$**" : 1 } )
442+
db.employees.createIndex( { "$**" : 1 } )
443443

444444
The following operation queries for a single field
445445
``lastName`` and projects out all other fields from the
446446
resulting document:
447447

448448
.. code-block:: javascript
449449

450-
db.products.find(
450+
db.employees.find(
451451
{ "lastName" : "Doe" },
452452
{ "_id" : 0, "lastName" : 1 }
453453
)

0 commit comments

Comments
 (0)