Class decorators
Type, Input, Interface, Query, Mutation, and Subscription accept a class
directly or can be called with metadata. Their shared options include GraphQL name,
description, directives, and explicit field configuration where applicable.
Enum, Union, and Scalar use definitions appropriate to their GraphQL kind but
register into the same type registry and compile into the same schema model.
Field
Field works as an annotated attribute descriptor, method decorator, or callable
resolver declaration. Supported metadata includes:
name,description,deprecatedordeprecation_reasontypeortype_for explicit GraphQL type controldefaultordefault_factoryarguments,directives,extensions, andpermission_classes
Arguments
UseArg(...) as a parameter default or Argument(...) with typing.Annotated.
Argument metadata supports names, descriptions, deprecation, defaults, and directives.