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
Webshop example schema error with graphql-code-generator #449
Comments
I also received this error when using the |
I don't know much about graphql-codegen but this is wierd the intro.json is the same as whats sent via /api/v1/graphql so if one worked so should the other.
|
@dosco Yeah I have this error too, however if I point it to the generated intro.json it seems to work correctly. I think we need to figure out if the data thats being sent out is 100% the same. I'll look at this in a bit once I'm done building out the current MVP. |
bBest option is to save the two and do a diff on it. would love some help with this. The function used by both is |
@dosco I'll check on this and give you an update. I'm just trying to get my prototype working this week. |
@dosco looking at how the responses are coming out, it seems like the only difference between the responses are: having the extra "data" wrappering the graph query response. But when I run the same wrappered json via the file schema option, it works. This is an issue with the codegen tool and not graphjin. |
What version of GraphJin are you using?
Latest master branch, v3.0.12 docker image
Have you tried reproducing the issue with the latest release?
Yes
What is the hardware spec (RAM, OS)?
64 GB, macOS Monterey
Steps to reproduce the issue (config used to run GraphJin).
cd examples/webshop
docker-compose run api db reset
(Note: latest is used, which is currently equivalent to v3.0.12)docker-compose up
yarn codegen
Expected behaviour and actual result.
Code generation fails while loading schema. Expected to succeed without error.
Outputs the below error
The text was updated successfully, but these errors were encountered: