All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infomaximum.cluster.graphql.executor.GraphQLExecutorImpl Maven / Gradle / Ivy

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