Operation
Represents a GraphQL operation (mutation, query or subscription).
Types
Data
Link copied to clipboard
Functions
rootField
Link copied to clipboard
serializeVariables
Link copied to clipboard
abstract override fun serializeVariables(writer: JsonWriter, customScalarAdapters: CustomScalarAdapters)
Content copied to clipboard
Inheritors
Mutation
Link copied to clipboard
Query
Link copied to clipboard
Subscription
Link copied to clipboard
Extensions
composeJsonRequest
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
{
"data": ...
"errors": ...
"extensions": ...
}
composeJsonResponse
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonResponse(jsonWriter: JsonWriter, data: D, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty)
Content copied to clipboard
parseJsonResponse
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
{
"data": ...
"errors": ...
"extensions": ...
}