-
-
Notifications
You must be signed in to change notification settings - Fork 571
Make deprecated introspection optional for legacy servers #1849
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
base: master
Are you sure you want to change the base?
Conversation
| * - typeIsOneOf | ||
| * Include field `isOneOf` for types? | ||
| * Default: false | ||
| * |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep this blank line
tests/Type/IntrospectionTest.php
Outdated
| self::assertCount(0, $matches[0]); | ||
| } | ||
|
|
||
| /** @see it('excludes deprecated fields and indicators when disabled') */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there tests in graphql-js called exactly like this? If so, please provide links to them. If not, we can omit this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, did not know that's how it worked, but no, this is not covered there. I'll take out the comment.
CHANGELOG.md
Outdated
|
|
||
| ### Changed | ||
|
|
||
| - Allow omitting deprecated introspection arguments/fields for legacy servers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - Allow omitting deprecated introspection arguments/fields for legacy servers | |
| - Allow omitting deprecated introspection arguments/fields for legacy servers https://github.com/webonyx/graphql-php/pull/1849 |
includeDeprecatedoption toIntrospection::getIntrospectionQuery()to omit deprecated args/fields for older spec compatibility.isDeprecated/deprecationReasonandincludeDeprecatedarguments when disabled.BuildClientSchemato treat missingdeprecationReasonas null.