Skip to content
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

Combining the use of suessflorian/gqlfetch and khan/genqlient with shopify graphql api #20

Open
codeliger opened this issue Sep 2, 2024 · 1 comment

Comments

@codeliger
Copy link

I used gqlfetch to get the shopify graphql schema at https://%s.myshopify.com/admin/api/2023-10/graphql.json (where %s is the name of your own shopify sites graphql api).

I attached it as a gist since its huge (1.6MB of text).

https://gist.github.com/codeliger/a4f16328a928ae1b151acfeea9ff61e6

When using a khan/genqlient to generate Go code from this schema I get this error many times:

schema.graphql:548: invalid schema: For AppInstallation to implement HasMetafields any additional arguments on metafield must be optional or have a default value but key is required.

I am not sure if this is a issue related to the underlying schema or the way gqlfetch interprets it.

@smahs
Copy link

smahs commented Oct 5, 2024

Not a very helpful comment, but this started happening only with Shopify schema version 2024-10 as it worked fine until 2024-07. But when building the schema with buildclientschema from graphql-js, genqlient has no problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants