-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore(gatsby-source-graphql): upgrade graphql-tools to v7 #27792
chore(gatsby-source-graphql): upgrade graphql-tools to v7 #27792
Conversation
Hi team! Hard for me to tell if this is a failure in graphql-tools. Locally, I am getting a lot of spurious errors. Thoughts? |
4706bdb
to
209b9aa
Compare
@yaacovCR can you provide a reason as to what this is doing or enabling? What benefits for users of |
Mostly getting bug fixes, for example, that will improve error reporting like ardatan/graphql-tools#1047 |
In terms of failing ci, are you able to shed some light on whether that looks related to this PR? |
Restarted the test, I think it's unrelated. Same question as in #27791 and as Dustin asked before. What breaking change required the bump to v7 and why does it not affect us? Why is it safe to upgrade? I can't find reasonable changelogs to verify this and it seems our version is relatively old. I have very little insight into this package myself so it's very hard to judge. Thanks |
https://github.com/ardatan/graphql-tools/releases/tag/graphql-tools%407.0.0 I don't think the breaking changes affect Gatsby. Can get more complicated in typescript as some types have changed. In terms of advantages, answered above, mostly bug fixes, like ardatan/graphql-tools#1047. Definitely would be more confident it tests passed! Not sure what's up with them. |
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.
Hey @yaacovCR
I want to try it locally before merging. Will get back to you as soon as I have a chance. Thanks for the PR! 💜
209b9aa
to
8a03e02
Compare
Won't feel confident however until tests pass... Tried rebasing.... No joy |
d5848d2
to
b740db0
Compare
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.
For some reason, our example project fails with this error on this PR:
Error: Schema must contain uniquely named types but contains multiple types named "Node".
Works fine with master
. Any ideas?
Not at the moment. :( Will have to dig in..... |
@vladar wrapSchema no longer takes transforms as the second object, instead just taking a single subschemaConfig object with transforms set there. This was a documented breaking change that I missed on my first pass. https://github.com/ardatan/graphql-tools/releases/tag/graphql-tools%407.0.0
b740db0
to
cf23dea
Compare
Works for me now when I test locally using gatsby-dev in example project. And tests pass! |
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.
Worked for me too now. Thank you for the PR! 💜
upgrade graphql-tools to v7
https://github.com/ardatan/graphql-tools/releases/tag/graphql-tools%407.0.0
v7 finally includes bug fixes that required breaking changes (e.g. ardatan/graphql-tools#1047).