This is documentation for v16, which is currently in preview.
See the latest stable version instead.
See the latest stable version instead.
Attribute and Directive Reference
Quick reference for all Fusion-related attributes and their GraphQL directive equivalents. For detailed usage and examples, follow the links to the relevant guide pages.
Attribute and Directive Reference Table
| Attribute | Directive | Description | Guide Page |
|---|---|---|---|
[ObjectType<T>] | — | Maps static class as extension to entity type T | Entities and Lookups |
[QueryType] | — | Marks class as contributing Query root fields | Getting Started |
[MutationType] | — | Marks class as contributing Mutation root fields | Getting Started |
[SubscriptionType] | — | Marks class as contributing Subscription root fields | Getting Started |
[Lookup] | @lookup | Declares field as entity lookup resolver | Entities and Lookups |
[NodeResolver] | — | Marks as Relay node resolver | Entities and Lookups |
[Internal] | @internal | Hides lookup from composed schema | Entities and Lookups |
[Shareable] | @shareable | Allows multiple subgraphs to resolve field | Entities and Lookups |
[Parent(requires: "...")] | — | Declares field requirements from parent | Entities and Lookups |
[Require("...")] | @require | Declares complex field requirements | Getting Started, Adding a Subgraph |
[EntityKey("...")] | @key | Declares entity key for resolution | Entities and Lookups |
[BindMember(nameof(...))] | — | Replaces raw FK with resolved entity | Adding a Subgraph |
[Tag("...")] | @tag | Applies tag for composition filtering | Composition |
[DataLoader] | — | Source-generates DataLoader interface | Getting Started, Entities and Lookups |
[UsePaging] | — | Enables cursor-based pagination | Getting Started |
[ID<T>] | — | Declares field as Relay-style ID | Entities and Lookups |
[Inaccessible] | @inaccessible | Hides from composite schema | Composition |
[Override(from: "...")] | @override | Migrates field ownership | Deployment and CI/CD |
[Provides("...")] | @provides | Declares locally-resolvable subfields | Entities and Lookups |
[External] | @external | Field defined by another subgraph | Entities and Lookups |
See Also
- Getting Started — Introduction to Fusion attributes in practice
- Entities and Lookups — Deep dive into entity resolution
- Composition — How attributes affect schema merging
- Nitro CLI Reference — Command-line tools for composition
Last updated on February 17, 2026 by Michael Staib