How to have cache to express-graphql?
Asked Answered
C

0

11

In my nodejs application I use graphql with express-graphql.

I can't see any cache option that library provide. How should I do the cache for graphql requests? (I need to support get and post)

Chromosphere answered 15/8, 2019 at 10:23 Comment(1)
The provided library is depracated. If you have to use it you may want to implement the GraphQL caching with Redis: blog.devgenius.io/… If you are not afraid of using the outdated/not-supported packages you can also try this one: github.com/ilkerkaran/express-graphql-redis but the best recommendation would be to use the most up-to-date solution.Stopoff

© 2022 - 2024 — McMap. All rights reserved.