Package graphql.analysis
Interface QueryVisitorFieldEnvironment
-
- All Known Implementing Classes:
QueryVisitorFieldEnvironmentImpl
@PublicApi public interface QueryVisitorFieldEnvironment
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getArguments()
Field
getField()
GraphQLFieldDefinition
getFieldDefinition()
GraphQLFieldsContainer
getFieldsContainer()
QueryVisitorFieldEnvironment
getParentEnvironment()
GraphQLOutputType
getParentType()
GraphQLSchema
getSchema()
SelectionSetContainer
getSelectionSetContainer()
TraverserContext<Node>
getTraverserContext()
boolean
isTypeNameIntrospectionField()
-
-
-
Method Detail
-
getSchema
GraphQLSchema getSchema()
- Returns:
- the graphql schema in play
-
isTypeNameIntrospectionField
boolean isTypeNameIntrospectionField()
- Returns:
- true if the current field is __typename
-
getField
Field getField()
- Returns:
- the current Field
-
getFieldDefinition
GraphQLFieldDefinition getFieldDefinition()
-
getParentType
GraphQLOutputType getParentType()
- Returns:
- the parent output type of the current field.
-
getFieldsContainer
GraphQLFieldsContainer getFieldsContainer()
- Returns:
- the unmodified fields container fot the current type. This is the unwrapped version of
getParentType()
It is eitherGraphQLObjectType
orGraphQLInterfaceType
. because these are the onlyGraphQLFieldsContainer
- Throws:
java.lang.IllegalStateException
- if the current field is __typename seeisTypeNameIntrospectionField()
-
getParentEnvironment
QueryVisitorFieldEnvironment getParentEnvironment()
-
getArguments
java.util.Map<java.lang.String,java.lang.Object> getArguments()
-
getSelectionSetContainer
SelectionSetContainer getSelectionSetContainer()
-
getTraverserContext
TraverserContext<Node> getTraverserContext()
-
-