Skip to content

Commit 86365e5

Browse files
author
Chris Cho
authored
fix syntax of examples on query-document (#134)
1 parent 8db7563 commit 86365e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/fundamentals/crud/query-document.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ This code snippet returns the following results:
146146
.. code-block:: javascript
147147

148148
collection.find({
149-
$and : [
150-
rating: { $eq: 5 },
151-
qty: { $gt: 4 }
149+
$and: [
150+
{ rating: { $eq: 5 }},
151+
{ qty: { $gt: 4 }}
152152
]
153153
})
154154

@@ -165,7 +165,7 @@ field:
165165

166166
.. code-block:: javascript
167167

168-
const query = { microsieverts: { $exists : true } };
168+
const query = { microsieverts: { $exists: true } };
169169
const cursor = collection.find(query);
170170
await cursor.forEach(console.dir);
171171

0 commit comments

Comments
 (0)