This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Disable caching for minimal graphql configuration #721
Unanswered
LucasEduardoRomero
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, thanks for providing this utility!
So, I recently joined an enterprise that uses graphql-kickstart, graphql-java-tools and graphql-java-extended-scalars. I've just start learning Graphql and understanding how it works.
So in our Spring boot API we have some standard Rest endpoints with POST, PUT etc. and some Queries (No mutations) with Graphql. When API makes a put to some endpoint and change data AND we make a request to the GraphQL Query, it ignores the data and returns the cache. I saw the DataLoaders logic with BatchLoaders and CacheOptions, but none of that is being used here! How could I simple disable the cache from GraphQL queries ?
I also understand that caching is a powerfull feature, but this problem is affecting production and would be better slower API than an API that returns fake data.
Sorry for my english
Beta Was this translation helpful? Give feedback.
All reactions