@PublicApi public class ExecutionInput extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionInput.Builder |
Modifier and Type | Method and Description |
---|---|
CacheControl |
getCacheControl() |
java.lang.Object |
getContext()
Deprecated.
- use
getGraphQLContext() |
org.dataloader.DataLoaderRegistry |
getDataLoaderRegistry() |
ExecutionId |
getExecutionId() |
java.util.Map<java.lang.String,java.lang.Object> |
getExtensions() |
GraphQLContext |
getGraphQLContext() |
java.lang.Object |
getLocalContext() |
java.util.Locale |
getLocale()
This returns the locale of this operation.
|
java.lang.String |
getOperationName() |
java.lang.String |
getQuery() |
RawVariables |
getRawVariables() |
java.lang.Object |
getRoot() |
java.util.Map<java.lang.String,java.lang.Object> |
getVariables() |
static ExecutionInput.Builder |
newExecutionInput() |
static ExecutionInput.Builder |
newExecutionInput(java.lang.String query)
Creates a new builder of ExecutionInput objects with the given query
|
java.lang.String |
toString() |
ExecutionInput |
transform(java.util.function.Consumer<ExecutionInput.Builder> builderConsumer)
This helps you transform the current ExecutionInput object into another one by starting a builder with all
the current values and allows you to transform it how you want.
|
public java.lang.String getQuery()
public java.lang.String getOperationName()
@Deprecated public java.lang.Object getContext()
getGraphQLContext()
getGraphQLContext()
public GraphQLContext getGraphQLContext()
GraphQLContext
object to pass to all data fetcherspublic java.lang.Object getLocalContext()
public java.lang.Object getRoot()
public java.util.Map<java.lang.String,java.lang.Object> getVariables()
public RawVariables getRawVariables()
public org.dataloader.DataLoaderRegistry getDataLoaderRegistry()
public CacheControl getCacheControl()
public ExecutionId getExecutionId()
public java.util.Locale getLocale()
public java.util.Map<java.lang.String,java.lang.Object> getExtensions()
public ExecutionInput transform(java.util.function.Consumer<ExecutionInput.Builder> builderConsumer)
builderConsumer
- the consumer code that will be given a builder to transformpublic java.lang.String toString()
toString
in class java.lang.Object
public static ExecutionInput.Builder newExecutionInput()
public static ExecutionInput.Builder newExecutionInput(java.lang.String query)
query
- the query to execute