File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,13 @@ cursor.addOption()
1919 list, see your :doc:`driver documentation </applications/drivers>`.
2020
2121 The following example in the :program:`mongo` shell adds the
22- ``DBQuery.Option.tailable`` and ``DBQuery.Option.awaitData`` flags
23- to ensure the cursor returned from the query is a tailable cursor
24- that waits for a few seconds when the cursor reaches the end of the
25- data:
22+ ``DBQuery.Option.tailable`` flag to ensure the cursor returned from
23+ the query is a tailable cursor:
2624
2725 .. code-block:: javascript
2826
29- var cursor = db.myCappedCollection.find().addOption(DBQuery.Option.tailable).
30- addOption(DBQuery.Option.awaitData );
27+ var t = db.myCappedCollection;
28+ var cursor = t.find(). addOption(DBQuery.Option.tailable );
3129
3230 .. warning:: Adding incorrect wire protocol flags can cause problems
3331 and/or extra server load.
You can’t perform that action at this time.
0 commit comments