-
Notifications
You must be signed in to change notification settings - Fork 2.1k
extendSchema: Do not modify standard directives #3618
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
Conversation
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
CI broken :( Change looks ok but somewhat unnecessary as recreated specified directive objects are identical to old directives, only necessary if for example schema modifiers are checking for specified directives via object identity rather than name, which should probably be avoided, as this "mistake" might be made by others. For example. mapSchema from graphql tools recreates specified directives... |
Fixed, you can now rerun CI on your PRs. |
Yes, but it would be a global, even in our own code: |
Sadly, GitHub UI doesn't allow to rerun it. |
Uncovered problems with #3611 ? |
CI working again -- if you want me to rebase on main and merge, just let me know. |
Without this change: ``` const extendedSchema = extendSchema(schema, parse(extensionSDL)); extendSchema.getDirective('skip') === GraphQLSkipDirective // false ``` Maybe in future we need more comprehensive solution, but for now it's enouch to just match behaviour that we already have to standard types.
Without this change:
Maybe in future we need more comprehensive solution, but for now it's enouch to just match behaviour that we already have to standard types.