Package graphql.analysis
Interface QueryVisitorFieldEnvironment
- All Known Implementing Classes:
QueryVisitorFieldEnvironmentImpl
-
Method Summary
-
Method Details
-
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:
IllegalStateException
- if the current field is __typename seeisTypeNameIntrospectionField()
-
getParentEnvironment
QueryVisitorFieldEnvironment getParentEnvironment() -
getArguments
-
getSelectionSetContainer
SelectionSetContainer getSelectionSetContainer() -
getTraverserContext
TraverserContext<Node> getTraverserContext()
-