-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6, 4.0.0
-
Component/s: None
-
Labels:None
Description
MongoDB 3.6 had a breaking compatibility change: "If you run the aggregate command, you must include either the cursor option or the explain option."
Many examples don't appear to have been updated, leaving users to puzzle out what's wrong.
For example, in the documentation for the $unwind operator, the command:
db.inventory.aggregate( [ { $unwind : "$sizes" } ] )
fails with the error:
aggregate failed: {
{{ "ok": 0,}}
{{ "errmsg": "The 'cursor' option is required, except for aggregate}}
with the explain argument",
{{ "code": 9,}}
{{ "codeName": "FailedToParse"}}
}
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- is related to
-
DOCS-12044 Aggregation lookup example is not working on mongodb version: 4.0.2
- Closed
-
DOCS-12045 $graphLookup examples should include cursor option
- Closed