Skip to main content
@Type discovers annotated attributes and resolver-backed Field values.

Declaration styles

Field accepts GraphQL name, description, deprecation reason, explicit type, default, default factory, argument metadata, directives, extensions, and permission classes. A field cannot define both default and default_factory.
The same Field contract is used on object types and query, mutation, or subscription roots. Operation decorators change root semantics, not field syntax.