Details
Description
Description
The example:
Gives a parsing error:
Error: Printing Stack Trace
|
at printStackTrace (src/mongo/shell/utils.js:37:15) |
at DBCollection.aggregate (src/mongo/shell/collection.js:897:9) |
at (shell):1:11 |
Mon Sep 10 19:27:07.199 aggregate failed: { |
"ok" : 0, |
"errmsg" : "The 'cursor' option is required, except for aggregate with the explain argument", |
"code" : 9, |
"codeName" : "FailedToParse" |
} at src/mongo/shell/collection.js:898 |
Is the documentation correct?
I copied the example word for word after getting the same errors on a data structure I was creating myself.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
Attachments
Issue Links
- is duplicated by
-
DOCS-12045 $graphLookup examples should include cursor option
-
- Closed
-
- related to
-
DOCS-12036 Aggregation examples don't work due to missing cursor option
-
- Closed
-