News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by RedShift1 on Friday May 06, 2022 @04:58PM (#31289547)
Here's the code: https://github.com/RedShift1/graphql-cached-get

Note that I made a very primitive implementation. Depending on which GraphQL node is queried, the request will be cached by the proxy or not. Apollo GraphQL server has much more fine grained methods of allowing caching (see https://www.apollographql.com/docs/apollo-server/performance...) however I left the example code crude so you see exactly what's going on under the hood.

There are no comments on this comment yet.