Is there a way to generate a flattened query from fragments? #9991
Unanswered
nareshbhatia
asked this question in
Q&A
Replies: 1 comment
-
Any pointers on this? Please help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given a query and a fragment in my client code:
The Client Preset generates a GraphQL query like this for the server:
Is there a way to generate a flattened, consolidated query without using fragments like this:
Context
Fragments are great for colocating data closer to the components that need it, however I am wondering if I could do better optimizations on the server-side if I could see the consolidated queries generated by the client.
Beta Was this translation helpful? Give feedback.
All reactions