GraphQL · Function
isCompositeType
isCompositeType checks whether a GraphQL type is an object, interface, or union. These types contain selectable fields or possible object types, unlike scalar and enum leaf types.
Last updated
Syntax
isCompositeType(type)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
isObjectTypeisInterfaceTypeisUnionTypeObject typesInterfacesUnionsSchemas and Types