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

The description for $in does not mention that it can be used with arrays nor does it explain the behavior when it is

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      The documentation states that "The $in operator is analogous to the SQL IN modifier, allowing you to specify an array of possible matches."

      But it appears to also work when applied to an array in the database. The documentation should define exactly what $in means when both argument and database are arrays.

      The behavior appears to be any element in the database array field is $in the query array.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            ianmercer Ian Mercer
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 15 weeks, 3 days ago