public class DataFetchingEnvironmentImpl extends java.lang.Object implements DataFetchingEnvironment
| Constructor and Description |
|---|
DataFetchingEnvironmentImpl(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> arguments,
java.lang.Object context,
java.util.List<Field> fields,
GraphQLOutputType fieldType,
GraphQLType parentType,
GraphQLSchema graphQLSchema) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsArgument(java.lang.String name)
Returns true of the named argument is present
|
<T> T |
getArgument(java.lang.String name)
Returns the named argument
|
java.util.Map<java.lang.String,java.lang.Object> |
getArguments() |
<T> T |
getContext()
Returns a context argument that is set up when the
GraphQL.execute(String, Object) method
is invoked |
java.util.List<Field> |
getFields() |
GraphQLOutputType |
getFieldType() |
GraphQLSchema |
getGraphQLSchema() |
GraphQLType |
getParentType() |
<T> T |
getSource() |
public DataFetchingEnvironmentImpl(java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> arguments,
java.lang.Object context,
java.util.List<Field> fields,
GraphQLOutputType fieldType,
GraphQLType parentType,
GraphQLSchema graphQLSchema)
public <T> T getSource()
getSource in interface DataFetchingEnvironmentT - you decide what type it ispublic java.util.Map<java.lang.String,java.lang.Object> getArguments()
getArguments in interface DataFetchingEnvironmentpublic boolean containsArgument(java.lang.String name)
DataFetchingEnvironmentcontainsArgument in interface DataFetchingEnvironmentname - the name of the argumentpublic <T> T getArgument(java.lang.String name)
DataFetchingEnvironmentgetArgument in interface DataFetchingEnvironmentT - you decide what type it isname - the name of the argumentpublic <T> T getContext()
DataFetchingEnvironmentGraphQL.execute(String, Object) method
is invokedgetContext in interface DataFetchingEnvironmentT - you decide what type it ispublic java.util.List<Field> getFields()
getFields in interface DataFetchingEnvironmentpublic GraphQLOutputType getFieldType()
getFieldType in interface DataFetchingEnvironmentpublic GraphQLType getParentType()
getParentType in interface DataFetchingEnvironmentpublic GraphQLSchema getGraphQLSchema()
getGraphQLSchema in interface DataFetchingEnvironment