GraphQL fragments ? #24431
-
Just wondering there is an expectation that fragments will be implemented? I couldn’t find mention of them anywhere, or in the graphql-client gem… |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I ran this query just now:
And the fragment seemed to work. What is it about fragments that isn’t working for you? |
Beta Was this translation helpful? Give feedback.
-
Apologies, my bad. I was looking here and there (ref material and code) and thought fragments were similar to variables, in that they were added to the json hash with a key of fragments. As you’ve shown, they are a part of the query value… |
Beta Was this translation helpful? Give feedback.
-
No apologies necessary. I’m learning this as I go too 😀 |
Beta Was this translation helpful? Give feedback.
I ran this query just now:
And the fragment seemed to work. What is it about fragments that isn’t working for you?