Subscription

interface Subscription<D : Subscription.Data> : Operation<D>

Represents a GraphQL subscription.

Types

Data
Link copied to clipboard
common
interface Data : Operation.Data

Functions

adapter
Link copied to clipboard
common
abstract override fun adapter(): Adapter<D>
The Adapter that maps the server response data to/from generated model class D.
document
Link copied to clipboard
common
abstract fun document(): String
The GraphQL operation String to be sent to the server.
id
Link copied to clipboard
common
abstract fun id(): String
An unique identifier for the operation.
name
Link copied to clipboard
common
abstract fun name(): String
The GraphQL operation name as in the *.graphql file.
rootField
Link copied to clipboard
common
abstract override fun rootField(): CompiledField
serializeVariables
Link copied to clipboard
common
abstract override fun serializeVariables(writer: JsonWriter, customScalarAdapters: CustomScalarAdapters)
Serializes the variables of this operation to a json