Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12045

$graphLookup examples should include cursor option

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      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.)

            Assignee:
            Unassigned Unassigned
            Reporter:
            nick.larew@mongodb.com Nicholas Larew
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 32 weeks, 4 days ago