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

Comment on: "manual/reference/mongodb-extended-json.txt"

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None

    Description

      The example for "Undefined" has a strange syntax with parenthesis instead of curly braces.

      db.people.find( { age : ( $gte : undefined ) } )
      

      Should probably be

      db.people.find( { age : { $gte : undefined } } )
      

      While it is a negative example (i.e. won't work either way), we should not make it more confusing by using invalid syntax.

      More background to undefined in the shell: https://jira.mongodb.org/browse/SERVER-6102

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 33 weeks, 3 days ago