-
Type: Bug
-
Resolution: Gone away
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Services Providers
-
None
-
Not Needed
-
Iteration Jackfruit
Seems the node driver throws a "MongoError: Cursor is closed" if you try to change an option, even if the cursor isClosed is false.
> const c = db.coll.find()
> c.isClosed()
false
> c.addOption(64)
Thrown:
MongoError: Cursor is closed
Note that using the internal cursor does the same thing, so it may be either a driver issue or a bug with how we expect the driver to act.
> c.cursor.addCursorFlag(16)
Thrown:
MongoError: Cursor is closed
> c.cursor.isClosed()
false