Executable

interface Executable<D : Executable.Data>

Base interface for Operation and Fragment that have an Adapter and Variables.

Fragments cannot be executed against a server but can be executed against the cache.

Types

Data
Link copied to clipboard
common
interface Data
Marker interface for generated models
Variables
Link copied to clipboard
common
class Variables(valueMap: Map<String, Any?>)
A helper class to hold variables

Functions

adapter
Link copied to clipboard
common
abstract fun adapter(): Adapter<D>
The Adapter that maps the server response data to/from generated model class D.
rootField
Link copied to clipboard
common
abstract fun rootField(): CompiledField
serializeVariables
Link copied to clipboard
common
abstract fun serializeVariables(writer: JsonWriter, customScalarAdapters: CustomScalarAdapters)
Serializes the variables of this operation to a json

Inheritors

Fragment
Link copied to clipboard
Operation
Link copied to clipboard

Extensions

variables
Link copied to clipboard
common
fun <D : Executable.Data> Executable<D>.variables(customScalarAdapters: CustomScalarAdapters): Executable.Variables
variablesJson
Link copied to clipboard
common
fun <D : Executable.Data> Executable<D>.variablesJson(customScalarAdapters: CustomScalarAdapters): String