Skip to content

Commit 9fd8218

Browse files
committed
Minor SODA documentation updates
1 parent e94c8c7 commit 9fd8218

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/user_guide/soda.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)