SupportGraphQl

interface SupportGraphQl

Support interface for clients that are not using Kotlin Coroutines.

You can call the functions in this interface from any JVM language.

Functions

mutate
Link copied to clipboard
abstract fun <D : Operation.Data, T, V : Operation.Variables> mutate(mutation: Mutation<D, T, V>, callback: (Result<T>) -> Unit): Cancelable
abstract fun <D : Operation.Data, T, V : Operation.Variables> mutate(mutation: Mutation<D, T, V>, lifecycleOwner: LifecycleOwner, callback: (Result<T>) -> Unit): Cancelable

Support function to execute a GraphQl mutation. It will run off the main Thread and gives the result back on the main thread. The mutation will not be executed before user is successfully logged in. You must cancel this operation when its no longer needed or you will get memory leaks!

query
Link copied to clipboard
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, callback: (Result<T>) -> Unit): Cancelable
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, lifecycleOwner: LifecycleOwner, callback: (Result<T>) -> Unit): Cancelable
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, updateIntervalMillis: Long, callback: (Result<T>) -> Unit): Cancelable
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, updateIntervalMillis: Long, lifecycleOwner: LifecycleOwner, callback: (Result<T>) -> Unit): Cancelable

Support function to execute a GraphQl query. It will run off the main Thread and gives the result back on the main thread. You must cancel this operation when its no longer needed or you will get memory leaks!

Inheritors

GraphQl
Link copied to clipboard