Verified against Semitexa Ultimate 2026.09.19.1020

Graphql attributes

Every attribute declared by Graphql, with the signature the code has and a usage quoted from the codebase.

#[ExposeAsGraphql]

Semitexa\Graphql\Attribute\ExposeAsGraphql

Applies to: class. Repeatable.

parameter type required
field string no
rootType string no
output string no
list bool no
watchScopes array no
description string no
#[ExposeAsGraphql(
    field: 'productBySlug',
    rootType: 'query',
    output: ProductGraphqlView::class,
)]
final class ProductDetailPayload

— vendor/semitexa/demo/resources/examples/Api/Graphql/ProductDetailPayload.example.php