ResolverExecutionContext

Functions

Link copied to clipboard
abstract fun <T : NodeObject?> globalIDStringFor(type: Type<T>, internalID: String): String
Creates a serialized GlobalID string for the given Node type and internal ID.
Link copied to clipboard
open fun <T> mutation(selections: String, targetClass: Class<T>): CompletableFuture<T>
Executes a sub-mutation against the Mutation root type with no variables.
open fun <T> mutation(operation: MutationFromAnnotation, targetClass: Class<T>): CompletableFuture<T>
Executes an annotated mutation with no variables.
abstract fun <T> mutation(selections: String, variables: Map<String, Any>, targetClass: Class<T>): CompletableFuture<T>
Executes a sub-mutation against the Mutation root type and returns the result as an instance of targetClass with the requested selections populated.
open fun <T> mutation(operation: MutationFromAnnotation, variables: Map<String, Any>, targetClass: Class<T>): CompletableFuture<T>
Executes a mutation declared with @GraphQLOperation.
Link copied to clipboard
open fun <T> query(selections: String, targetClass: Class<T>): CompletableFuture<T>
Executes a subquery against the Query root type with no variables.
open fun <T> query(operation: QueryFromAnnotation, targetClass: Class<T>): CompletableFuture<T>
Executes an annotated query with no variables.
abstract fun <T> query(selections: String, variables: Map<String, Any>, targetClass: Class<T>): CompletableFuture<T>
Executes a subquery against the Query root type and returns the result as an instance of targetClass with the requested selections populated.
open fun <T> query(operation: QueryFromAnnotation, variables: Map<String, Any>, targetClass: Class<T>): CompletableFuture<T>
Executes a query declared with @GraphQLOperation.
Link copied to clipboard
abstract fun <T : GraphQLObject?> ref(call: RootFieldCall<T>): T
Creates a lazy reference to an object-valued query root field or a field reachable through @namespaceType fields.
abstract fun <T : NodeCompositeOutput?> ref(id: GlobalID<T>): T
Creates a lazy reference to a Node from its GlobalID.