In my codebase I work with collocated fragments next to my components. As a result my queries end up being gigantic, because of all the fragment definitions and being used multiple times, I’m talking a few thousand lines long. The actual fields being requested are not that many. If I wrote the same query without using fragments and not repeating fields, the same query would be less than 200 lines.
Is there any apollo link or anything will do this automatically? This would not change the response from the server but it would make the requests a lot smaller.