Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-125

Field Matcher: field negative matcher (exclusion)

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.3
    • Affects Version/s: None
    • Component/s: Querying
    • None

      find( {} ,

      { foo : -1 }

      )

      edit by mstearn:
      final syntax:

      {foo: 0}

      or

      {foo: false} {foo: -1}

      is treated as

      {foo: true}

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            eliot Eliot Horowitz (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: