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

possible bug when trying to query a field with value of 0

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Trivial - P5 Trivial - P5
    • None
    • None
    • None
    • 0.25

    Description

      i have a field in my collection call `approved` with type of `int` ,

      when i try to query it like

      ```
      db.articles.find(

      {approved: 0}

      )
      ```

      gives nothing but

      ```
      db.articles.find(

      {approved: 1}

      )
      ```
      works without any issues.

      Attachments

        Activity

          People

            allison.moore@mongodb.com Allison Reinheimer Moore
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 16 weeks, 2 days ago