Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-582

Query with multiple values: `in` operator

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Local

      I am trying to build a query that will return objects with given set of values of _id property.
      In Java i use in opertaion and it works good.
      In Kotlin i try to use this query:

      realm.query<ModelBookmark>("_id in $0", ids)

      But it crashes with message that type not supported.
      Right now i generate query that looks like "_id == "1" or _id == "2" ..." and it works...
      Version of realm-kotlin is 1.1.0-SNAPSHOT (in 1.0.1 ByteArray still not works).

            Assignee:
            claus.rorbech@mongodb.com Claus Rørbech (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: