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

Comment on: "manual/reference/operator/exists.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    Description

      > Documents that contain the field but has the value null are not returned.

      It's not the case:

      > db.test.insert({ _id: 1, cancelDate: null })
      > db.test.find( { cancelDate : { $exists: false } } )
      > db.test.find( { cancelDate : { $exists: true } } )
      { "_id" : 1, "cancelDate" : null }

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            auto auto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 28 weeks, 5 days ago