Search in sources :

Example 1 with GraphQLNullableType

use of graphql.schema.GraphQLNullableType in project graphql-java by graphql-java.

the class TraversalContext method enterImpl.

private void enterImpl(ArrayValue arrayValue) {
    GraphQLNullableType nullableType = getNullableType(getInputType());
    GraphQLInputType inputType = null;
    if (nullableType instanceof GraphQLList) {
        inputType = (GraphQLInputType) ((GraphQLList) nullableType).getWrappedType();
    }
    addInputType(inputType);
}
Also used : GraphQLInputType(graphql.schema.GraphQLInputType) GraphQLList(graphql.schema.GraphQLList) GraphQLNullableType(graphql.schema.GraphQLNullableType)

Aggregations

GraphQLInputType (graphql.schema.GraphQLInputType)1 GraphQLList (graphql.schema.GraphQLList)1 GraphQLNullableType (graphql.schema.GraphQLNullableType)1