execute

open override fun <D : Operation.Data> execute(request: ApolloRequest<D>): Flow<ApolloResponse<D>>

Execute a request.

This function must not throw in normal circumstances. Instead, emit an ApolloResponse with a non null ApolloResponse.exception. It may throw if the error is the result of a programming error like wrongly configured interceptors.

Return

a flow of responses.

Parameters

request

the request to execute.