-
Notifications
You must be signed in to change notification settings - Fork 470
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
Use reference-equality when filtering rules in buildSchemaFromSDL
#1551
Use reference-equality when filtering rules in buildSchemaFromSDL
#1551
Conversation
Similar in spirit to apollographql/apollo-server#3338. The technique previously used for removing rules from the standard `specifiedRules` was leveraging a check on `Function.prototype.name`, rather than doing direct object equality. While that does generally work, thanks to the more recent standardization of `Function.prototype.name`, it still breaks down under some of the more aggressive minification techniques since a function's name is not guaranteed to remain the same. Fixes: apollographql/apollo-server#3335
|
buildSchemaFromSDL
buildSchemaFromSDL
This change broke the ability to use I recognize that the peer dep from |
@glasser thank you for pointing this out. Is this an issue that So I understand correctly, is it accurate to say that |
I believe so. |
This commit updates the apollo-graphql package to the latest version. This includes a fix for a bug that currently breaks minification. For reference, see: apollographql/apollo-tooling#1551 Fixes #3335
This commit updates the apollo-graphql package to the latest version. This includes a fix for a bug that currently breaks minification. For reference, see: apollographql/apollo-tooling#1551 Fixes #3335
…3387) This commit updates the apollo-graphql package to the latest version. This includes a fix for a bug that currently breaks minification. For reference, see: apollographql/apollo-tooling#1551 Fixes apollographql/apollo-server#3335 Apollo-Orig-Commit-AS: apollographql/apollo-server@6a4b681
Similar in spirit to apollographql/apollo-server#3338.
The technique previously used for removing rules from the standard
specifiedRules
was leveraging a check onFunction.prototype.name
, rather than doing direct object equality. While that does generally work, thanks to the more recent standardization ofFunction.prototype.name
, it still breaks down under some of the more aggressive minification techniques since a function's name is not guaranteed to remain the same.Fixes: apollographql/apollo-server#3335