Package | Description |
---|---|
graphql | |
graphql.nextgen |
WARNING: All code in this package is a work in progress for a new execution engine.
|
Modifier and Type | Method and Description |
---|---|
ExecutionInput.Builder |
ExecutionInput.Builder.cacheControl(CacheControl cacheControl) |
ExecutionInput.Builder |
ExecutionInput.Builder.context(GraphQLContext.Builder contextBuilder) |
ExecutionInput.Builder |
ExecutionInput.Builder.context(Object context)
By default you will get a
GraphQLContext object but you can set your own. |
ExecutionInput.Builder |
ExecutionInput.Builder.context(UnaryOperator<GraphQLContext.Builder> contextBuilderFunction) |
ExecutionInput.Builder |
ExecutionInput.Builder.dataLoaderRegistry(org.dataloader.DataLoaderRegistry dataLoaderRegistry)
You should create new
DataLoaderRegistry s and new DataLoader s for each execution. |
static ExecutionInput.Builder |
ExecutionInput.newExecutionInput() |
static ExecutionInput.Builder |
ExecutionInput.newExecutionInput(String query)
Creates a new builder of ExecutionInput objects with the given query
|
ExecutionInput.Builder |
ExecutionInput.Builder.operationName(String operationName) |
ExecutionInput.Builder |
ExecutionInput.Builder.query(String query) |
ExecutionInput.Builder |
ExecutionInput.Builder.root(Object root) |
ExecutionInput.Builder |
ExecutionInput.Builder.variables(Map<String,Object> variables) |
Modifier and Type | Method and Description |
---|---|
ExecutionResult |
GraphQL.execute(ExecutionInput.Builder executionInputBuilder)
Executes the graphql query using the provided input object builder
|
CompletableFuture<ExecutionResult> |
GraphQL.executeAsync(ExecutionInput.Builder executionInputBuilder)
Executes the graphql query using the provided input object builder
|
Modifier and Type | Method and Description |
---|---|
ExecutionResult |
GraphQL.execute(UnaryOperator<ExecutionInput.Builder> builderFunction)
Executes the graphql query using calling the builder function and giving it a new builder.
|
CompletableFuture<ExecutionResult> |
GraphQL.executeAsync(UnaryOperator<ExecutionInput.Builder> builderFunction)
Executes the graphql query using the provided input object builder
|
ExecutionInput |
ExecutionInput.transform(Consumer<ExecutionInput.Builder> builderConsumer)
This helps you transform the current ExecutionInput object into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
Modifier and Type | Method and Description |
---|---|
ExecutionResult |
GraphQL.execute(ExecutionInput.Builder executionInputBuilder)
Executes the graphql query using the provided input object builder
|
CompletableFuture<ExecutionResult> |
GraphQL.executeAsync(ExecutionInput.Builder executionInputBuilder)
Executes the graphql query using the provided input object builder
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<ExecutionResult> |
GraphQL.execute(UnaryOperator<ExecutionInput.Builder> builderFunction)
Executes the graphql query using the provided input object builder
|
CompletableFuture<ExecutionResult> |
GraphQL.executeAsync(UnaryOperator<ExecutionInput.Builder> builderFunction)
Executes the graphql query using the provided input object builder
|
Copyright © 2019. All rights reserved.