graphql.servlet.GraphQLSingleInvocationInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-servlet Show documentation
Show all versions of graphql-java-servlet Show documentation
relay.js-compatible GraphQL servlet
package graphql.servlet;
import graphql.ExecutionInput;
import graphql.schema.GraphQLSchema;
import graphql.servlet.internal.GraphQLRequest;
/**
* @author Andrew Potter
*/
public class GraphQLSingleInvocationInput extends GraphQLInvocationInput {
private final GraphQLRequest request;
public GraphQLSingleInvocationInput(GraphQLRequest request, GraphQLSchema schema, GraphQLContext context, Object root) {
super(schema, context, root);
this.request = request;
}
public ExecutionInput getExecutionInput() {
return createExecutionInput(request);
}
}