You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've gotten client side (apollo) code generation going pretty well, where generated queries and mutations are callable within components. However, being code-generator creates all the fields within the queries/ mutations, using them can end up over-fetching data. What is the "normal" workflow to get the query or mutation, but with just the fields necessary? I read something about using fragments. Is that the key? Or does the frontend devs just have put to their queries and mutation together themselves?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've gotten client side (apollo) code generation going pretty well, where generated queries and mutations are callable within components. However, being code-generator creates all the fields within the queries/ mutations, using them can end up over-fetching data. What is the "normal" workflow to get the query or mutation, but with just the fields necessary? I read something about using fragments. Is that the key? Or does the frontend devs just have put to their queries and mutation together themselves?
Scott
Beta Was this translation helpful? Give feedback.
All reactions