Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
None
Description
With the exception of the explain example, all of the aggregate examples that do not include cursor: {} return the following error message when run using mongod and mongo shell version 3.6.2:
"The 'cursor' option is required, except for aggregate with the explain argument"
|
This seems to contradict the text in the Example section, that suggests one does not need to specify the cursor if using db.collection.aggregate().
Running the examples on mongod and mongo shell version 3.4.12 works as written.