DmitryTsepelev / graphql-ruby-persisted_queries

Persisted queries for graphql-ruby
MIT License
172 stars 20 forks source link

Try cache GraphQL::Query instead of query strings #2

Closed DmitryTsepelev closed 3 years ago

bmorton commented 4 years ago

As I stated in #16, I’d love to take a swing at this. I was thinking about moving the current Resolver to be a QueryStringResolver and then to implement a ParsedQueryResolver and allow that to be configured via GraphQL::PersistedQueries.use. What do you think about that?

DmitryTsepelev commented 4 years ago

Yeah, passing a kwarg to the use call (like use GraphQL::PersistedQueries, cache_parsed_queries: true) sounds perfect!

DmitryTsepelev commented 3 years ago

Closed via #39