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. The query will not be executed before user is successfully logged in.

Since

1.3.0

Return

Flow with the Result

Parameters

query

to be executed

updateIntervalMillis

fires the query within this interval. If its zero or less the query will execute only once

abstract suspend fun <D : Operation.Data, T, V : Operation.Variables> query(query: Query<D, T, V>): Result<T>

Execute a GraphQl query. The query will not be executed before user is successfully logged in.

Since

1.5.0

Return

Result of type T

Parameters

query

to be executed