Package-level declarations
Types
This adapter is used to handle nullable fields when they are represented as Optional. null
is deserialized as Optional.Absent.
An ApolloRequest represents a GraphQL request to execute.
Represents a GraphQL response or an exception if no GraphQL response is received.
A boolean expression
A term that comes from a fragment type condition and that needs to be matched against __typename
A generic term in a BooleanExpression
A property delegate that stores the given property as it would be serialized in a Json This is needed in Data Builders because the serializer only work from Json
A compiled field from a GraphQL operation
A compiled inline fragment or fragment spread
The Kotlin representation of a GraphQL value
The Kotlin representation of a GraphQL variable value
A wrapper around a Map
A GraphQL scalar type that is mapped to a Kotlin. This is named "Custom" for historical reasons but is also used for builtin scalars
A replica of Apollo Android v2's CustomTypeAdapter, to ease migration from v2 to v3.
A FakeResolver that generates:
A default Upload that can upload from a wide variety of content
Represents an error response returned from the GraphQL server See https://spec.graphql.org/draft/#sec-Errors.Error-result-format
Provides fakes values for Data builders
Base interface for a fragment implementation. Fragments do not have variables per the GraphQL spec but they are inferred from arguments and used when reading the cache See https://github.com/graphql/graphql-spec/issues/204 for a proposal to add fragment arguments
A helper class to make it easier to build Maps from the java codegen
This file contains a list of Adapter for standard types
Type safe representation of a GraphQL mutation.
Represents a GraphQL operation (mutation, query or subscription).
PresentAdapter can only express something that's present. Absent values are handled outside the adapter.
Type safe representation of a GraphQL query.
TODO v4: remove (see also CustomScalarType above
Type safe representation of a GraphQL subscription.
The variables as a Json representation. If some
Properties
Functions
Uses unsafeCast on JS or a regular as
unsafe cast on other platforms.
Helper function for the Java codegen
Reads a GraphQL Json response like below to a ApolloResponse
writes a successful GraphQL Json response containing "data" to the given sink.
Returns the Set of boolean variables that are false either explicitly or because there is a default value
Helper function for the Kotlin codegen
Reads a GraphQL Json response to a ApolloResponse. GraphQL Json responses look like so:
Reads a GraphQL Json response like below to a ApolloResponse. GraphQL Json responses look like so:
Reads a ApolloResponse from this. The caller is responsible for closing this.
Returns all objects that implement type
Reads a single ApolloResponse from this. Returns an error response if this contains more than one JSON response or trailing tokens. toApolloResponse takes ownership and closes this.
Serializes the given Data
to a String.
Serializes the given Data
to the given JsonWriter.
Serializes the given Data
to a string.
Serializes the given Data
to a successful GraphQL response:
Returns a map of the variables as they would be sent over the wire. Use this to construct your own HTTP requests
Returns the variables as they would be sent over the wire. Use this to construct your own HTTP requests