News for hackers. Stuff that matters.
Re:GraphQL Performance Monitoring Is Hard by Aeolun on Sunday July 28, 2019 @07:09PM (#20550323)
> It's another to have request body fully parsed by a caching middleware layer in a non-idempotent non-cacheable request.

As far as I understand it you can use the request body directly as a caching key. No need to parse it. If you request exactly the same thing there’s no need to re-request it.

Re:GraphQL Performance Monitoring Is Hard by dmitriid on Monday July 29, 2019 @02:16AM (#20551911)
That would be a way to do it, but that would require the client to send exact queries. Depending on how queries are constructed, that will not always be the case.

Also, a quick look at the top search query for “Apollo graphql caching” shows that Apollo needs to deconsteuct the object (both for the request and the response) to be able to cache things: https://www.apollographql.com/docs/react/advanced/caching/

(I’m using Apollo here as one of the most advanced GraphQL solutions)