File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -351,13 +351,13 @@ Other examples of chained read and write operations include:
351
351
while ((myDocument = await docCursor .getNext ())) {
352
352
console .log (myDocument .getContent ());
353
353
}
354
- docCursor .close ();
354
+ await docCursor .close ();
355
355
356
356
- To remove the documents matching the supplied keys:
357
357
358
358
.. code-block :: javascript
359
359
360
- await collection .find ().keys ([" k1" , " k2" ])) .remove ();
360
+ await collection .find ().keys ([" k1" , " k2" ]).remove ();
361
361
362
362
- To remove the document with the key ‘k1’ and version ‘v1’:
363
363
@@ -488,7 +488,7 @@ Some QBE examples are:
488
488
while ((myDocument = await docCursor .getNext ())) {
489
489
console .log (myDocument .getContent ());
490
490
}
491
- docCursor .close ();
491
+ await docCursor .close ();
492
492
493
493
- Same as the previous example, but allowing for pagination of results
494
494
by only getting 10 documents:
You can’t perform that action at this time.
0 commit comments