ApolloCall
An ApolloCall is a thin class that builds a ApolloRequest and calls ApolloClient.execute() with it. ApolloCall is mutable and designed to allow chaining calls.
Functions
Adds an HTTP header to be sent with the request. This HTTP header is added on top of any existing ApolloClient header. If you want to replace the headers, use httpHeaders instead.
A shorthand for toFlow().single()
. Use this for queries and mutation to get a single ApolloResponse from the network or the cache. For subscriptions, you usually want to use toFlow instead to listen to all values.
Sets the HTTP headers to be sent with the request. This method overrides any HTTP header previously set on ApolloClient
Returns a cold Flow that produces ApolloResponses for this ApolloCall. Note that the execution happens when collecting the Flow. This method can be called several times to execute a call again.