Problem Description
Find cursor allowDiskUse() not implemented in mongosh 0.5.1 (THE DROP DOWN ABOVE DOESN'T ALLOW ME TO SELECT 0.5.1 HENCE HAVE SELECTED 0.5.2)
This is required because the collection the find is being run on might actually be a view, and in my case the view is defined by an aggregation containing a $group which results in the find() erroring with the '100M limit being exceeded' error, when not using allowDiskUse() . This works fine on Mongo Shell.
Steps to Reproduce
Run mongosh and run following command (db and collection don't have to exist:
db.coll.find().allowDiskUse()
TypeError: db.coll.find(...).allowDiskUse is not a function
Expected Results
Run in mongo shell and works fine
Actual Results
TypeError: db.coll.find(...).allowDiskUse is not a function
Additional Notes
List of cursor functions which should be supported: https://docs.mongodb.com/manual/reference/method/db.collection.find/
Please also check that all other cursor functions are implemented.
- depends on
-
NODE-2955 cursor.allowDiskUse support
- Closed
- related to
-
MONGOSH-463 Make sure all 4.4 features are covered
- Closed