• Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API design
    • Labels:
      None

      We need to figure out exactly how to queries should work. This is especially important when we also consider suspend functions.

      In Realm Java we right now have a `RealmQuery` class you can call method like `findAll()`, `findAllAsync()` or `findFirst()` on.

      In Realm Kotlin we most likely will expose the string based Core API. Swift/JS both have an lazy-evaluated approach to this.

       

      Questions/TODO:

      • What does an Kotlin idiomatic API look like?
      • How can it be supported both synchronously and from suspend functions?
      • We need to define use cases, e.g. how does synchronous queries look like? Suspend queries?
      • Would we except a subpar experience for synchronous queries if suspend query support is excellent?
      • Write up design doc with proposal and pros/cons.

            Assignee:
            eduardo.lopezgutierrez@mongodb.com Eduardo López Gutiérrez (Inactive)
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: