com.infomaximum.cluster.graphql.executor.GraphQLExecutorImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cluster-graphql Show documentation
Show all versions of cluster-graphql Show documentation
Library for creating a light cluster
The newest version!
package com.infomaximum.cluster.graphql.executor;
import com.infomaximum.cluster.graphql.executor.struct.GExecutionResult;
import com.infomaximum.cluster.graphql.struct.ContextRequest;
import graphql.ExecutionInput;
import graphql.GraphQL;
import graphql.schema.GraphQLSchema;
public class GraphQLExecutorImpl implements GraphQLExecutor {
private final GraphQLSchema schema;
private final GraphQL graphQL;
public GraphQLExecutorImpl(GraphQLSchema schema, GraphQL graphQL) {
this.schema = schema;
this.graphQL = graphQL;
}
public GraphQLSchema getSchema() {
return schema;
}
@Override
public GExecutionResult execute(ExecutionInput executionInput) {
return new GExecutionResult(graphQL.execute(executionInput));
}
@Override
public void requestCompleted(ContextRequest context) {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy