Skip to content

Commit 68385fc

Browse files
authored
Updates examples (#3271)
1 parent 4b3e64a commit 68385fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/core/views/specify-collation.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Create a ``places`` collection with the following documents:
1919
.. code-block:: javascript
2020

2121
db.places.insertMany([
22-
{ _id: 1, category: "café" }
23-
{ _id: 2, category: "cafe" }
22+
{ _id: 1, category: "café" },
23+
{ _id: 2, category: "cafe" },
2424
{ _id: 3, category: "cafE" }
2525
])
2626

@@ -40,7 +40,7 @@ The following operation uses the view's collation:
4040

4141
.. code-block:: javascript
4242

43-
db.placesView.count( { category: "cafe" } )
43+
db.placesView.countDocuments( { category: "cafe" } )
4444

4545
The operation returns ``3``.
4646

0 commit comments

Comments
 (0)