Graph Ql
Functions
mutate
Link copied to clipboard
Execute a GraphQl mutation. The mutation will not be executed before user is successfully logged in.
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
Execute a GraphQl query. The query will not be executed before user is successfully logged in.
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, callback: (Result<T>) -> Unit): Cancelable
Content copied to clipboard
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, lifecycleOwner: LifecycleOwner, callback: (Result<T>) -> Unit): Cancelable
Content copied to clipboard
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!