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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • None
    • Server
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 6 weeks, 6 days ago