@Deprecated
public class GraphQL
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphQL.Builder
Deprecated.
|
| Constructor and Description |
|---|
GraphQL(GraphQL.Builder builder)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
ExecutionResult |
execute(ExecutionInput.Builder executionInputBuilder)
Deprecated.
Executes the graphql query using the provided input object builder
|
ExecutionResult |
execute(ExecutionInput executionInput)
Deprecated.
Executes the graphql query using the provided input object
|
java.util.concurrent.CompletableFuture<ExecutionResult> |
execute(java.util.function.UnaryOperator<ExecutionInput.Builder> builderFunction)
Deprecated.
Executes the graphql query using the provided input object builder
|
java.util.concurrent.CompletableFuture<ExecutionResult> |
executeAsync(ExecutionInput.Builder executionInputBuilder)
Deprecated.
Executes the graphql query using the provided input object builder
|
java.util.concurrent.CompletableFuture<ExecutionResult> |
executeAsync(ExecutionInput executionInput)
Deprecated.
Executes the graphql query using the provided input object
|
java.util.concurrent.CompletableFuture<ExecutionResult> |
executeAsync(java.util.function.UnaryOperator<ExecutionInput.Builder> builderFunction)
Deprecated.
Executes the graphql query using the provided input object builder
|
static GraphQL.Builder |
newGraphQL(GraphQLSchema graphQLSchema)
Deprecated.
Helps you build a GraphQL object ready to execute queries
|
GraphQL |
transform(java.util.function.Consumer<GraphQL.Builder> builderConsumer)
Deprecated.
This helps you transform the current GraphQL object into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
public GraphQL(GraphQL.Builder builder)
public ExecutionResult execute(ExecutionInput.Builder executionInputBuilder)
This will return a completed ExecutionResult
which is the result of executing the provided query.
executionInputBuilder - ExecutionInput.BuilderExecutionResult which can include errorspublic java.util.concurrent.CompletableFuture<ExecutionResult> execute(java.util.function.UnaryOperator<ExecutionInput.Builder> builderFunction)
This will return a completed ExecutionResult
which is the result of executing the provided query.
This allows a lambda style like :
ExecutionResult result = graphql.execute(input -> input.query("{hello}").root(startingObj).context(contextObj));
builderFunction - a function that is given a ExecutionInput.BuilderExecutionResult which can include errorspublic ExecutionResult execute(ExecutionInput executionInput)
This will return a completed ExecutionResult
which is the result of executing the provided query.
executionInput - ExecutionInputExecutionResult which can include errorspublic java.util.concurrent.CompletableFuture<ExecutionResult> executeAsync(ExecutionInput.Builder executionInputBuilder)
This will return a promise (aka CompletableFuture) to provide a ExecutionResult
which is the result of executing the provided query.
executionInputBuilder - ExecutionInput.BuilderExecutionResult which can include errorspublic java.util.concurrent.CompletableFuture<ExecutionResult> executeAsync(java.util.function.UnaryOperator<ExecutionInput.Builder> builderFunction)
This will return a promise (aka CompletableFuture) to provide a ExecutionResult
which is the result of executing the provided query.
This allows a lambda style like :
ExecutionResult result = graphql.executeAsync(input -> input.query("{hello}").root(startingObj).context(contextObj));
builderFunction - a function that is given a ExecutionInput.BuilderExecutionResult which can include errorspublic java.util.concurrent.CompletableFuture<ExecutionResult> executeAsync(ExecutionInput executionInput)
This will return a promise (aka CompletableFuture) to provide a ExecutionResult
which is the result of executing the provided query.
executionInput - ExecutionInputExecutionResult which can include errorspublic static GraphQL.Builder newGraphQL(GraphQLSchema graphQLSchema)
graphQLSchema - the schema to usepublic GraphQL transform(java.util.function.Consumer<GraphQL.Builder> builderConsumer)
builderConsumer - the consumer code that will be given a builder to transform