GraphQLExecutor

interface GraphQLExecutor

An interface for executing GraphQL operations, including queries, mutations, and subscriptions.

Implementers of this interface are responsible for executing GraphQL operations and returning the results, while handling any errors that may occur during the execution.

Inheritors

Functions

Link copied to clipboard
abstract fun <T : Mutation.Data> execute(mutation: Mutation<T>): T

Executes a GraphQL mutation and returns the result.

abstract fun <T : Query.Data> execute(query: Query<T>): T

Executes a GraphQL query and returns the result.