Skip to content

Commit 9708faa

Browse files
committed
DOCS-860 cursor.addOption
1 parent 24a1589 commit 9708faa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/reference/method/cursor.addOption.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ cursor.addOption()
99
Use the :method:`cursor.addOption()` method on a cursor to add
1010
OP_QUERY wire protocol flags, such as the ``tailable`` flag.
1111

12-
:param flag: OP_Query wire protocol flag. See :meta-driver:`MongoDB
13-
wire protocol </legacy/mongodb-wire-protocol>` for more
14-
information on MongoDB Wire Protocols and the OP_Query flags.
12+
:param flag: OP_QUERY wire protocol flag. See :meta-driver:`MongoDB
13+
wire protocol </legacy/mongodb-wire-protocol>` for more
14+
information on MongoDB Wire Protocols and the OP_QUERY
15+
flags.
1516

1617
For the :program:`mongo` shell, see the list of :ref:`cursor flags
1718
<cursor-flags>` available in the shell. For the driver-specific
@@ -25,7 +26,8 @@ cursor.addOption()
2526

2627
.. code-block:: javascript
2728

28-
var cursor = db.myCappedCollection.find().addOption( DBQuery.Option.tailable ).addOption( DBQuery.Option.awaitData );
29+
var cursor = db.myCappedCollection.find().addOption(DBQuery.Option.tailable).
30+
addOption(DBQuery.Option.awaitData);
2931

3032
.. warning:: Adding incorrect wire protocol flags can cause problems
3133
and/or extra server load.

0 commit comments

Comments
 (0)