module GraphQL::FragmentCache::Schema::Instrumentation
Adds hook for saving cached values after query is resolved
Public Instance Methods
after_query(query)
click to toggle source
# File lib/graphql/fragment_cache/schema/instrumentation.rb, line 15 def after_query(query) return unless query.valid? Cacher.call(query) end
before_query(query)
click to toggle source
# File lib/graphql/fragment_cache/schema/instrumentation.rb, line 12 def before_query(query) end