Skip to content

Conversation

@BoD
Copy link
Contributor

@BoD BoD commented Dec 18, 2025

Adds the ability to apply directives to directive definitions and to deprecate directives, with this syntax:

directive @onDirective on DIRECTIVE_DEFINITION

directive @foo @onDirective on OBJECT

directive @baz @deprecated(reason: "...") on OBJECT

extend directive @quux @deprecated(reason: "...")

With @IvanGoncharov's blessing, this PR is a continuation and updated version of #907 which I think can be closed. (There's also prior art in #567).

Motivation

Allow applying directive-exclusive features (e.g. @specifyBy, @deprecated) on directives.

For instance, on Apollo Kotlin we'd like to deprecate some client side directives.

@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for graphql-spec-draft ready!

Name Link
🔨 Latest commit a257894
🔍 Latest deploy log https://app.netlify.com/projects/graphql-spec-draft/deploys/69457e3ea85f4f00083836c9
😎 Deploy Preview https://deploy-preview-1206--graphql-spec-draft.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants