At a glance
- Project
- GraphQL Spec
- Identifier
- #907
- Stage
- RFC 1 / Proposal
- Champion
- @IvanGoncharov
- Updated
- 2025-12-18
- Latest activity
- Pull request closed on
- Source
- Pull request
Pull request description
I suggest allowing to specify directives on directives with the following syntax:
directive @foo on DIRECTIVE_DEFINITION
directive @bar on FIELD @foo
Motivation
Allow applying directive-exclusive features (e.g. @specifyBy, @deprecate) on directives.
Validation
We already have a rule in place that prevent cycles in directives
A directive definition must not contain the use of a directive that references itself indirectly by referencing a Type or Directive which transitively includes a reference to this directive.
https://spec.graphql.org/draft/#sel-HAHnBTDDABAB_F_kC
So validation is already in place and already paid "complexity cost".
Timeline
December 2025
- Pull request closed on
January 2022
- Advanced to RFC 1 on by leebyron
- Discussed in GraphQL WG
December 2021
- Top comment edited on by IvanGoncharov
- Pull request created on by IvanGoncharov
- @IvanGoncharov committed "Add support for directives on directives" on
- Advanced to RFC 0 on by IvanGoncharov
- On the agenda for GraphQL WG
23 listed attendees · 12 agenda items · 4 linked RFCs
- Agree to Membership Agreement, Participation Guidelines and Code of Conduct (1m, Lee)
- Introduction of attendees (5m, Lee)
- Determine volunteers for note taking (1m, Lee)
- Review agenda (2m, Lee)
- Review previous meeting's action items (5m, Lee)
- Update on TSC Elections (1m, Lee)
- Shorthand for variables/arguments on operation (Saihaj, 10m)
- Client Controlled Nullability status update. (10m, Alex Reilly) #895
- Defer/Stream updates/issues/discussions. (30m, Rob Richard) #742
- Discuss GraphQL mutation design(s) with large schemas (nested mutations) (30m, Aleksandar) wg#815
- Allow specifying directives on directives #907
- ADD YOUR AGENDA ABOVE