@PublicApi public class ExecutionContext extends Object
public ExecutionId getExecutionId()
public InstrumentationState getInstrumentationState()
public Instrumentation getInstrumentation()
public GraphQLSchema getGraphQLSchema()
public Map<String,FragmentDefinition> getFragmentsByName()
public Document getDocument()
public OperationDefinition getOperationDefinition()
public Object getContext()
public <T> T getRoot()
public FragmentDefinition getFragment(String name)
public org.dataloader.DataLoaderRegistry getDataLoaderRegistry()
public CacheControl getCacheControl()
public void addError(GraphQLError error, ExecutionPath fieldPath)
error
- the error to addfieldPath
- the field path to put it underpublic void addError(GraphQLError error)
error
- the error to addpublic List<GraphQLError> getErrors()
public ExecutionStrategy getQueryStrategy()
public ExecutionStrategy getMutationStrategy()
public ExecutionStrategy getSubscriptionStrategy()
public DeferSupport getDeferSupport()
public ExecutionContext transform(Consumer<ExecutionContextBuilder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformCopyright © 2019. All rights reserved.