[DOCS-12045] $graphLookup examples should include cursor option Created: 10/Sep/18  Updated: 30/Oct/23  Resolved: 10/Sep/18

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Nicholas Larew Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates DOCS-12044 Aggregation lookup example is not wor... Closed
Related
related to DOCS-12036 Aggregation examples don't work due t... Closed
Participants:
Days since reply: 5 years, 22 weeks, 2 days ago

 Description   

Description

Comment

This documentation is wrong.
I'm running version 4.0.2 of mongodb and the example given on the section: Use $lookup with $mergeObjects
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

Feedback Responses

Was it accurate? - No
Was it all on one page? - Yes
Was it clear? - Yes
Did they find it? - Yes

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)


Generated at Thu Feb 08 08:04:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.