Looking for examples including Fragments #1200
Unanswered
phrfpeixoto
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Let me start by stating that I'm a novice to GraphQL in general. I'm not writing my own API, I'm consuming Shopify's API.
I've started using ariadne-codegen to generate Python code from Shopify's (quite) large GraphQL schema.
I managed to generate the code (and later butchered it to pieces so I could use a small subset), but now I'm looking for examples of defining fragments.
IE, for the "get customer" query, I want to define a fragment with the usual subset of fields I'll be constantly selecting:
So that I can run queries like
What I'm looking for is a Python example for this query. Something like this?
Any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions