Skip to content
masterclass Buddy

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.

Subscribe
  • isObjectType
  • isInterfaceType
  • isUnionType
  • Object types
  • Interfaces
  • Unions
  • Schemas and Types

Source: Schemas and Types. Checked 2026-11-03.