-
Type:
Task
-
Resolution: Fixed
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: API design
-
Labels:None
-
8
-
84
-
Kotlin Beta sprint 13, Kotlin Beta sprint 14, Kotlin Beta sprint 15, Kotlin Beta sprint 16
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.
- is depended on by
-
RKOTLIN-137 Story: MVP Realm API
- Closed
-
RKOTLIN-146 Story: MVP RealmQuery API
- Closed