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

$all with an empty array should return all documents rather than no documents

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Query Execution

      $all doesn't work as expected on lists

      The logic of all seems to be:
      {field:{$all:lst}}
      if for all x in list, x is in field, then return
      else, do not return

      However, for the empty list, which would vacuously satisfy everything, it does not return everything.

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            nakamura Moses Nakamura
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: