use of graphql.schema.GraphQLUnmodifiedType in project graphql-java by graphql-java.
the class TraversalContext method enterImpl.
private void enterImpl(ObjectField objectField) {
GraphQLUnmodifiedType objectType = schemaUtil.getUnmodifiedType(getInputType());
GraphQLInputType inputType = null;
if (objectType instanceof GraphQLInputObjectType) {
GraphQLInputObjectType inputObjectType = (GraphQLInputObjectType) objectType;
GraphQLInputObjectField inputField = schema.getFieldVisibility().getFieldDefinition(inputObjectType, objectField.getName());
if (inputField != null)
inputType = inputField.getType();
}
addInputType(inputType);
}
use of graphql.schema.GraphQLUnmodifiedType in project graphql-java by graphql-java.
the class TraversalContext method enterImpl.
private void enterImpl(SelectionSet selectionSet) {
GraphQLUnmodifiedType rawType = new SchemaUtil().getUnmodifiedType(getOutputType());
GraphQLCompositeType parentType = null;
if (rawType instanceof GraphQLCompositeType) {
parentType = (GraphQLCompositeType) rawType;
}
addParentType(parentType);
}
Aggregations