Skip to content

Commit 24a1589

Browse files
committed
DOCS-860 addOption method, includes warning
1 parent 1021d2b commit 24a1589

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/reference/method/cursor.addOption.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ cursor.addOption()
2626
.. code-block:: javascript
2727

2828
var cursor = db.myCappedCollection.find().addOption( DBQuery.Option.tailable ).addOption( DBQuery.Option.awaitData );
29+
30+
.. warning:: Adding incorrect wire protocol flags can cause problems
31+
and/or extra server load.
32+

0 commit comments

Comments
 (0)