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:
351351 while ((myDocument = await docCursor .getNext ())) {
352352 console .log (myDocument .getContent ());
353353 }
354- docCursor .close ();
354+ await docCursor .close ();
355355
356356 - To remove the documents matching the supplied keys:
357357
358358 .. code-block :: javascript
359359
360- await collection .find ().keys ([" k1" , " k2" ])) .remove ();
360+ await collection .find ().keys ([" k1" , " k2" ]).remove ();
361361
362362 - To remove the document with the key ‘k1’ and version ‘v1’:
363363
@@ -488,7 +488,7 @@ Some QBE examples are:
488488 while ((myDocument = await docCursor .getNext ())) {
489489 console .log (myDocument .getContent ());
490490 }
491- docCursor .close ();
491+ await docCursor .close ();
492492
493493 - Same as the previous example, but allowing for pagination of results
494494 by only getting 10 documents:
You can’t perform that action at this time.
0 commit comments