Add "Directives All the Way Down" blog post#10062
Draft
glen-84 wants to merge 4 commits into
Draft
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new website blog post announcing Hot Chocolate 16.4 support for applying directives to directive definitions (“directives all the way down”), including examples for SDL, implementation-first, and code-first, plus introspection and non-deprecation use cases.
Changes:
- Adds a new blog post explaining the GraphQL spec change (DIRECTIVE_DEFINITION) and Hot Chocolate 16.4 support.
- Includes practical examples for deprecating directives and reading the new introspection fields/arguments.
- Links readers to the corresponding docs section for full reference.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+4
to
+6
| description: "GraphQL directives can now be applied to directive definitions themselves in Hot Chocolate 16.4, so you can finally deprecate a directive and attach metadata to your schema's own extension points." | ||
| tags: ["hotchocolate", "graphql", "directives", "deprecation"] | ||
| featuredImage: "header.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@deprecated, and the introspection surface (__Directive.isDeprecated/deprecationReason,__Schema.directives(includeDeprecated:)).@requiresOptIn,@tag, bring-your-own metadata directives) and closes by inviting reader use cases.(Pure content addition, so no test plan.)