Query parser: IN

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      We only support IN when the right hand side is a list property, but we should also support this when the right hand side is a list of constants.
      For example: {{fruit IN

      {'apple', 'orange'}

      }}. This is equivilent to fruit == 'apple' || fruit == 'orange'

      Part of https://github.com/realm/realm-core/issues/2978 and reported by https://github.com/realm/realm-js/issues/2781

            Assignee:
            James Stone
            Reporter:
            James Stone
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: