use of graphql.execution.NonNullableFieldValidator in project graphql-java by graphql-java.
the class BatchedExecutionStrategy method handleNonNullType.
private void handleNonNullType(ExecutionContext executionContext, FetchedValues fetchedValues) {
ExecutionTypeInfo typeInfo = fetchedValues.getExecutionTypeInfo();
NonNullableFieldValidator nonNullableFieldValidator = new NonNullableFieldValidator(executionContext, typeInfo);
ExecutionPath path = fetchedValues.getPath();
for (FetchedValue value : fetchedValues.getValues()) {
nonNullableFieldValidator.validate(path, value.getValue());
}
}
Aggregations