You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using gqlgen with ent. I want to test out the cache for only a select set of queries. One strategy to do this is to set the cache to skip by default for each incoming request but then be able to turn it on for specific GraphQL queries. The skip can be done at a middleware level. The only issue I am facing is that there is no public method to "toggle" ctxOptions.skip.
Would this qualify as a feature to add to the public interface?
The text was updated successfully, but these errors were encountered:
I'd love to see this. My use case is that I'd like to use the cache only for token lookups. I don't know much about how queries are generated but I think an option providing a list of tables during entcache initialization and the filtering by table name here could be a straight-forward solution. I can contribute the code if that sounds feasible to folks.
I am using
gqlgen
with ent. I want to test out the cache for only a select set of queries. One strategy to do this is to set the cache to skip by default for each incoming request but then be able to turn it on for specific GraphQL queries. The skip can be done at a middleware level. The only issue I am facing is that there is no public method to "toggle"ctxOptions.skip
.Would this qualify as a feature to add to the public interface?
The text was updated successfully, but these errors were encountered: