GraphQLIntersectionType
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
config: Readonly<GraphQLIntersectionTypeConfig<any, any>>
Returns GraphQLIntersectionType
Properties
astNode
description
extensionASTNodes
extensions
name
resolveType
Accessors
[toStringTag]
Returns string
Methods
getTypes
Returns readonly (GraphQLInterfaceType | GraphQLUnionType)[]
toConfig
Returns GraphQLIntersectionTypeNormalizedConfig
toJSON
Returns string
toString
Returns string
Intersection Type Definition
When a field can return one of a set of types constrained by multiple abstract types, an Intersection type is used to describe the constraints as well as providing a function to determine which type is actually used when the field is resolved.
Example: