-
-
Notifications
You must be signed in to change notification settings - Fork 660
Expose attached schema directives through introspection #4598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,813
−137
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
5aae994
Expose attached schema directives through introspection
patrick91 9013ef7
Print directive argument types as schema types
patrick91 c58a8f1
Discover directives on directive argument types
patrick91 4363a0c
Collect nested directives before rebuilding schema
patrick91 6e321f5
Assert complete directive schemas
patrick91 83d9540
Keep Federation support types out of SDL
patrick91 b2598df
Mark private Federation SDL types
patrick91 12c011c
Construct non-printing Federation types
patrick91 d4fc361
Separate directive collection from schema creation
patrick91 79a2524
Use ordered map for directive registry
patrick91 d814fae
Simplify GraphQL schema construction
patrick91 1b8af00
Register generated federation directives
patrick91 9d5e153
Address schema directive review findings
patrick91 31ac8fa
Address follow-up directive review feedback
patrick91 da8b33e
Simplify hidden SDL type reachability
patrick91 6614832
Address final schema directive review
patrick91 1221d64
Simplify schema directive collection
patrick91 970c0a5
Merge branch 'main' into fix/schema-directive-introspection
patrick91 c0b9fbc
Address Thiago's feedback
patrick91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| --- | ||
| release type: patch | ||
| social_messages: | ||
| x: >- | ||
| {project_name} {version} is out! Custom schema directives attached to types and | ||
| fields now appear in GraphQL introspection. 🍓 | ||
| https://strawberry.rocks/release/{version} | ||
| linkedin: >- | ||
| {project_name} {version} is out. GraphQL tools can now discover custom schema | ||
| directives attached throughout a Strawberry schema using standard | ||
| introspection. 🍓 | ||
| --- | ||
|
|
||
| This release fixes introspection for custom schema directives. | ||
|
|
||
| Schema directives attached to types, fields, arguments, and other schema elements | ||
| now appear in standard GraphQL introspection. Schema explorers, IDEs, code | ||
| generators, and other tools can discover each directive's description, arguments, | ||
| allowed locations, repeatability, and any input types it uses. | ||
|
|
||
| Existing Strawberry SDL output stays compatible, and a directive reused across | ||
| the schema is defined only once. |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.