public class GraphQL
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
GraphQL.Builder |
Constructor and Description |
---|
GraphQL(GraphQLSchema graphQLSchema)
Deprecated.
use the
newGraphQL(GraphQLSchema) builder instead. This will be removed in a future version. |
GraphQL(GraphQLSchema graphQLSchema,
ExecutionStrategy queryStrategy)
Deprecated.
use the
newGraphQL(GraphQLSchema) builder instead. This will be removed in a future version. |
GraphQL(GraphQLSchema graphQLSchema,
ExecutionStrategy queryStrategy,
ExecutionStrategy mutationStrategy)
Deprecated.
use the
newGraphQL(GraphQLSchema) builder instead. This will be removed in a future version. |
Modifier and Type | Method and Description |
---|---|
ExecutionResult |
execute(java.lang.String requestString) |
ExecutionResult |
execute(java.lang.String requestString,
java.lang.Object context) |
ExecutionResult |
execute(java.lang.String requestString,
java.lang.Object context,
java.util.Map<java.lang.String,java.lang.Object> arguments) |
ExecutionResult |
execute(java.lang.String requestString,
java.lang.String operationName,
java.lang.Object context) |
ExecutionResult |
execute(java.lang.String requestString,
java.lang.String operationName,
java.lang.Object context,
java.util.Map<java.lang.String,java.lang.Object> arguments) |
static GraphQL.Builder |
newGraphQL(GraphQLSchema graphQLSchema)
Helps you build a GraphQL object ready to execute queries
|
public GraphQL(GraphQLSchema graphQLSchema)
newGraphQL(GraphQLSchema)
builder instead. This will be removed in a future version.graphQLSchema
- the schema to usepublic GraphQL(GraphQLSchema graphQLSchema, ExecutionStrategy queryStrategy)
newGraphQL(GraphQLSchema)
builder instead. This will be removed in a future version.graphQLSchema
- the schema to usequeryStrategy
- the query execution strategy to usepublic GraphQL(GraphQLSchema graphQLSchema, ExecutionStrategy queryStrategy, ExecutionStrategy mutationStrategy)
newGraphQL(GraphQLSchema)
builder instead. This will be removed in a future version.graphQLSchema
- the schema to usequeryStrategy
- the query execution strategy to usemutationStrategy
- the mutation execution strategy to usepublic static GraphQL.Builder newGraphQL(GraphQLSchema graphQLSchema)
graphQLSchema
- the schema to usepublic ExecutionResult execute(java.lang.String requestString)
public ExecutionResult execute(java.lang.String requestString, java.lang.Object context)
public ExecutionResult execute(java.lang.String requestString, java.lang.String operationName, java.lang.Object context)
public ExecutionResult execute(java.lang.String requestString, java.lang.Object context, java.util.Map<java.lang.String,java.lang.Object> arguments)
public ExecutionResult execute(java.lang.String requestString, java.lang.String operationName, java.lang.Object context, java.util.Map<java.lang.String,java.lang.Object> arguments)