query
abstract fun <T> query(selections: String, variables: Map<String, Any>, targetClass: Class<T>): CompletableFuture<T>(source)
Executes a subquery against the Query root type and returns the result as an instance of
targetClass with the requested selections populated.
Return
a future that completes with the populated Query GRT instance
Parameters
selections
the GraphQL selection string (e.g., "firstName lastName")
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 Query root
Executes a subquery against the Query root type with no variables.
open fun <T> query(operation: QueryFromAnnotation, variables: Map<String, Any>, targetClass: Class<T>): CompletableFuture<T>(source)
Executes a query declared with @GraphQLOperation.
Generated resolver contexts provide overloads that infer targetClass from the tenant's Query GRT.
open fun <T> query(operation: QueryFromAnnotation, targetClass: Class<T>): CompletableFuture<T>(source)
Executes an annotated query with no variables.