-
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
gatsby-source-graphql no longer working with context variables #20280
Comments
CC @yaacovCR |
Likely related to yaacovCR/graphql-tools-fork@a8f2785 Even vanilla schema stitching uses new generated variables to support serializing custom scalars. I don't believe upstream graphql-tools or the fork ever filters the variables so the unused variable is still sent. This has not caused errors in my testing, but does waste bandwidth. Curious if anyone knows details of whether this error is from the external GraphQL service and which one it is, surprised more people not getting this. |
Should be able to turn out fix by tomorrow. |
Updates graphql-tools-fork to v8.0.1 which addresses gatsbyjs#20280.
Updates graphql-tools-fork to v8.0.1 which addresses #20280.
@vladar This seems like it's resolved with the latest graphql-tools-fork. Could it get a version update so fix can published? |
I'm seeing this error as well. Using Hasura to provide a GraphQL data source from a Postgres Database. Using the example code from the Gatsby docs I get the same error "unexpected variables in variableValues" when trying to load content into my template for CreatePage. I'm also using 2.1.29 of gatsby-source-graphql. Much thanks for a fix release. |
Please try |
@vladar Working great. Thanks! |
Description
After upgrading to
[email protected]
, I'm seeing this error with a GraphQL source that uses a variable:This must be related to #20042. I've tested with the previous version,
[email protected]
, and I get no errors.Here's a rough sample of my code:
Expected result
Context variables should work with GraphQL queries.
Actual result
I receive the error above.
Environment
The text was updated successfully, but these errors were encountered: