graphql.execution.instrumentation.parameters.FieldParameters Maven / Gradle / Ivy
The newest version!
package graphql.execution.instrumentation.parameters;
import graphql.execution.ExecutionContext;
import graphql.execution.instrumentation.Instrumentation;
import graphql.schema.GraphQLFieldDefinition;
/**
* Parameters sent to {@link Instrumentation} methods
*/
public class FieldParameters {
private final ExecutionContext executionContext;
private final graphql.schema.GraphQLFieldDefinition fieldDef;
public FieldParameters(ExecutionContext executionContext, GraphQLFieldDefinition fieldDef) {
this.executionContext = executionContext;
this.fieldDef = fieldDef;
}
public ExecutionContext getExecutionContext() {
return executionContext;
}
public GraphQLFieldDefinition getField() {
return fieldDef;
}
}