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

document behavior change to $all: now interpreted as shorthand for $and

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      The new query system now interprets $all as syntactic sugar for $and. In some cases this can cause different query behavior in 2.5 compared to 2.4. See https://jira.mongodb.org/browse/SERVER-11785 for details.

      The 2.4.8 documentation (http://docs.mongodb.org/manual/reference/operator/query/all/) says the following: "The $all operator selects the documents where the value of a field is an array that contains all the specified elements." This is not strictly true now that $all is shorthand for $and.

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 17 weeks, 1 day ago