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()
19
19
list, see your :doc:`driver documentation </applications/drivers>`.
20
20
21
21
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:
26
24
27
25
.. code-block:: javascript
28
26
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 );
31
29
32
30
.. warning:: Adding incorrect wire protocol flags can cause problems
33
31
and/or extra server load.
You can’t perform that action at this time.
0 commit comments