Package graphql.schema.idl
Class UnionTypesChecker
java.lang.Object
graphql.schema.idl.UnionTypesChecker
UnionType check, details in https://spec.graphql.org/June2018/#sec-Type-System.
Invalid name begin with "__" (two underscores); Union type must include one or more member types; The member types of a Union type must all be Object base types; The member types of a Union type must be unique.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<Class<? extends UnionTypeDefinition>, String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertTypeName
(UnionTypeDefinition unionTypeDefinition, List<GraphQLError> errors) private void
checkUnionType
(TypeDefinitionRegistry typeRegistry, UnionTypeDefinition unionTypeDefinition, List<GraphQLError> errors) (package private) void
checkUnionType
(List<GraphQLError> errors, TypeDefinitionRegistry typeRegistry)
-
Field Details
-
TYPE_OF_MAP
-
-
Constructor Details
-
UnionTypesChecker
UnionTypesChecker()
-
-
Method Details
-
checkUnionType
-
checkUnionType
private void checkUnionType(TypeDefinitionRegistry typeRegistry, UnionTypeDefinition unionTypeDefinition, List<GraphQLError> errors) -
assertTypeName
-