Package-level declarations

Types

Link copied to clipboard

Sentinel type for operations that take no variables. Generated operation objects for no-variable queries implement GraphQLOperation via GraphQLNoVarOperation.

Link copied to clipboard

A registry that provides GraphQL document text and APQ hash for a given operation name.

Link copied to clipboard
interface GraphQLJson

Pluggable serialization abstraction for GraphQL request and response bodies.

Link copied to clipboard

Convenience interface for operations that take no variables.

Link copied to clipboard

Represents a statically-known GraphQL operation with generated metadata.

Link copied to clipboard
data class GraphQLRequest<TVariables : GraphQLVariables>(val query: String, val operationName: String, val variables: TVariables? = null, val extensions: Map<String, Any?> = emptyMap())

A typed GraphQL request payload.

Link copied to clipboard

Thrown when a GraphQL response contains errors and the caller requires non-null data.

Link copied to clipboard

Marker interface for generated GraphQL variable classes.

Functions

Link copied to clipboard
inline fun <T, R> GraphContainer<T>.mapData(transform: (T) -> R): R?

Transforms GraphContainer.data with transform if present, or returns null.

Link copied to clipboard

Returns the non-null GraphContainer.data or throws GraphQLResponseException if the response contains errors.