Attributes
Interfaces, Classes and Traits
- ArrayOf
- Declares the element type for an array-typed property or return value.
- ConnectionOf
- Marks a query's return type as a Relay-style connection of the given node type.
- Deprecated
- Marks a field or enum value as deprecated in the GraphQL schema.
- Description
- Provides a human-readable description for the annotated element.
- Ignore
- Tells the builder to skip the annotated element entirely.
- Name
- Overrides the GraphQL name derived from the PHP class or property name.
- Parameter
- Declares an explicit GraphQL argument for a query or mutation.
- ParameterDescription
- Adds a description to a query/mutation argument without overriding its type.
- PublicAccess
- Marks a query or mutation as publicly accessible without authentication.
- RequiredCapability
- Declares a WordPress capability required to execute a query or mutation.
- ReturnType
- Declares the GraphQL return type of execute() when it returns an interface.
- ScalarType
- Overrides the GraphQL type for a property with a custom scalar.
- Unroll
- Expands a class's properties into individual flat GraphQL arguments.
