Class GraphQLInterfaceType

java.lang.Object
graphql.schema.GraphQLInterfaceType
All Implemented Interfaces:
GraphQLCompositeType, GraphQLDirectiveContainer, GraphQLFieldsContainer, GraphQLImplementingType, GraphQLNamedOutputType, GraphQLNamedSchemaElement, GraphQLNamedType, GraphQLNullableType, GraphQLOutputType, GraphQLSchemaElement, GraphQLType, GraphQLUnmodifiedType

In graphql, an interface is an abstract type that defines the set of fields that a type must include to implement that interface.

At runtime a TypeResolver is used to take an interface object value and decide what GraphQLObjectType represents this interface type.

See https://graphql.org/learn/schema/#interfaces for more details on the concept.