[DOCS-11304] Aggregation 3.6 examples fail without cursor option Created: 09/Feb/18 Updated: 27/Oct/23 Resolved: 24/May/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Brian Moss | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 5 years, 38 weeks ago |
| 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:
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. |
| Comments |
| Comment by Brian Moss [ 24/May/18 ] |
|
This is actually an issue with mongo-hacker, which overrides the aggregate() helper. Docs are fine. To test without shell extensions, use: mongo --norc |