3 ms·
I think the Fields: header in the library is supposed to be used for that, it would look something like Fields: /users/*/hometown in the same request. It
by jiofih 7y ago
I think the Fields: header in the library is supposed to be used for that, it would look something like
Fields: /users/*/hometown
in the same request.
It feels like it’s solving all the wrong problems to me - who actually wants to put varnish in between GraphQL client and server? Caching can be done more efficiently at either end. And this doesn’t provide a replacement for a query language, just moves some of the optimizations to the transport (http2) layer.
Now I’m wondering why Apollo doesn’t use http2 push to batch requests, instead of merging queries. Or does it?
- imtringued 7y agoNow all they need to do is allow the fields header to represent arbitrary graph structures and they will have reinvented GraphQL poorly.