-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sync
-
None
-
?
-
1
-
434
-
Needed
-
Please add information to this field.
-
Kotlin Beta sprint 40, Kotlin Beta sprint 41, Kotlin Beta sprint 42, Kotlin Beta sprint 43, Kotlin Beta sprint 44, Kotlin Beta sprint 45
Similar to Realm Java we should expose MongoDB Functions in the API: https://docs.mongodb.com/realm-sdks/java/latest/io/realm/mongodb/functions/Functions.html
interface io.realm.mongodb.functions.Functions { val user: User val app: App val defaultCodecRegistry: CodecRegistry suspend fun <ResultT> callFunction(name: String, args: List<Any>, resultDecoder: Decoder<ResultT>) suspend fun callFunction(name: String, args: List<Any>, resultClass: KClass<ResultT>) suspend fun callFunction(name: String, args: List<Any>, codecRegistry: CodecRegistry) } // Access Functions through the user val user = app.login(credentials) val functions = user.functions