public class TypeAndFieldRule extends java.lang.Object implements SchemaValidationRule
details in https://spec.graphql.org/June2018/#sec-Type-System- Types must define one or more fields;
- Enum type must define one or more enum values;
- Union type must include one or more unique member types;
- The member types of a Union type must all be Object base types;
- Non‐Null type must not wrap another Non‐Null type;
- Invalid name begin with "__" (two underscores).
Constructor and Description |
---|
TypeAndFieldRule() |
Modifier and Type | Method and Description |
---|---|
void |
check(GraphQLFieldDefinition fieldDef,
SchemaValidationErrorCollector validationErrorCollector) |
void |
check(GraphQLSchema graphQLSchema,
SchemaValidationErrorCollector validationErrorCollector) |
void |
check(GraphQLType type,
SchemaValidationErrorCollector validationErrorCollector) |
public void check(GraphQLSchema graphQLSchema, SchemaValidationErrorCollector validationErrorCollector)
check
in interface SchemaValidationRule
public void check(GraphQLFieldDefinition fieldDef, SchemaValidationErrorCollector validationErrorCollector)
check
in interface SchemaValidationRule
public void check(GraphQLType type, SchemaValidationErrorCollector validationErrorCollector)
check
in interface SchemaValidationRule