mutation
abstract fun <R> mutation(selections: String, variables: Map<String, Any>, targetClass: Class<R>): CompletableFuture<R>(source)
Executes a sub-mutation against the Mutation root type and returns the result as an instance of targetClass with the requested selections populated.
Return
a future that completes with the populated Mutation GRT instance
Parameters
selections
the GraphQL selection string (e.g., "incrementCounter")
variables
variables map for parameterized selections
target Class
the Java GRT class to populate with the resolved data
<T>
the Java GRT type for the Mutation root
Executes a sub-mutation against the Mutation root type with no variables.
open fun <R> mutation(operation: MutationFromAnnotation, variables: Map<String, Any>, targetClass: Class<R>): CompletableFuture<R>(source)
Executes a mutation declared with @GraphQLOperation.
Generated resolver contexts provide overloads that infer targetClass from the tenant's Mutation GRT.
open fun <R> mutation(operation: MutationFromAnnotation, targetClass: Class<R>): CompletableFuture<R>(source)
Executes an annotated mutation with no variables.