GraphQl

interface GraphQl : SupportGraphQl

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
mutate
Link copied to clipboard
abstract suspend fun <D : Operation.Data, T, V : Operation.Variables> mutate(mutation: Mutation<D, T, V>): Result<T>
Execute a GraphQl mutation.
abstract fun <D : Operation.Data, T, V : Operation.Variables> mutate(mutation: Mutation<D, T, V>, callback: (Result<T>) -> Unit): Cancelable
Support function to execute a GraphQl mutation.
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.
mutateLiveData
Link copied to clipboard
abstract fun <D : Operation.Data, T, V : Operation.Variables> mutateLiveData(mutation: Mutation<D, T, V>): LiveData<Result<T>>
Support function to execute a GraphQl mutation returning LiveData.
query
Link copied to clipboard
abstract suspend fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>): Result<T>
Execute a GraphQl query.
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, updateIntervalMillis: Long): Flow<Result<T>>
Execute a GraphQl query.
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, callback: (Result<T>) -> Unit): Cancelable
Support function to execute a GraphQl query.
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, lifecycleOwner: LifecycleOwner, callback: (Result<T>) -> Unit): Cancelable
Support function to execute a GraphQl query.
abstract fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>, updateIntervalMillis: Long, callback: (Result<T>) -> Unit): Cancelable
Support function to execute a GraphQl query.
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.
queryLiveData
Link copied to clipboard
abstract fun <D : Operation.Data, T, V : Operation.Variables> queryLiveData(query: Query<D, T, V>): LiveData<Result<T>>
Support function to execute a GraphQl query returning a LiveData.
abstract fun <D : Operation.Data, T, V : Operation.Variables> queryLiveData(query: Query<D, T, V>, updateIntervalMillis: Long): LiveData<Result<T>>
Support function to execute a GraphQl query returning LiveData It will run off the main Thread and gives the result back on the main thread.
toString
Link copied to clipboard
open fun toString(): String