4 ms·
Here's the code: https://github.com/RedShift1/graphql-cached-get https://github.com/RedShift1/graphql-cached-get Note that I made a very primitive implementati
by RedShift1 4y ago
Here's the code: https://github.com/RedShift1/graphql-cached-get 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/caching/ 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.