Operation
Represents a GraphQL operation (mutation, query or subscription).
Types
Link copied to clipboard
Marker interface for generated models built from data returned by the server in response to this operation.
Functions
Link copied to clipboard
A list of CompiledSelection. Used when reading from the cache and/or normalizing a model. Use com.apollographql.apollo3.cache.normalized.ApolloStore.readOperation for a higher level API
Link copied to clipboard
abstract override fun serializeVariables(writer: JsonWriter, customScalarAdapters: CustomScalarAdapters)
Content copied to clipboard
Serializes the variables of this operation to a json
Inheritors
Extensions
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonRequest(jsonWriter: JsonWriter, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty)
Content copied to clipboard
Reads a GraphQL Json response like below to a ApolloResponse
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonResponse( jsonWriter: JsonWriter, data: D, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty)
Content copied to clipboard
writes a successful GraphQL Json response containing "data" to the given sink.
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(jsonReader: JsonReader, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty): ApolloResponse<D>
Content copied to clipboard
Reads a GraphQL Json response like below to a ApolloResponse
fun <D : Operation.Data> Operation<D>.parseJsonResponse(json: String, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty): ApolloResponse<D>
Content copied to clipboard