Skip to content

Enable cache selectively per query #26

Description

@kingzbauer

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions