Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1697

Add `options` parameter to .find help

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.3.3
    • Affects Version/s: None
    • Component/s: i18n
    • Environment:
      OS: MacOS (non M1)
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration Milky Way
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Hi mongosh team,

      I noticed when running db.collection.find.help() the definition only includes db.collection.find(query, projection) the docs page has a 3rd options parameter: https://docs.mongodb.com/manual/reference/method/db.collection.find.
      I think the help text should this be updated. See shell output gist below.

      Shell output: https://gist.github.com/ianf-mongodb/ae63443e373a99812dde6db51bd64d2a

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      db.collection.find.help()

      Expected Results

      What do you expect to happen?

      db.collection.find(query, projection, options)

      Actual Results

      What do you observe is happening?

      db.collection.find(query, projection)

      Additional Notes

      Any additional information that may be useful to include.

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            ian.fogelman@mongodb.com Ian Fogelman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: