lib/graphql/cache/field.rb
def to_graphql
        field_defn = super # Returns a GraphQL::Field
        field_defn.metadata[:cache] = @cache_config
        field_defn
      end
# Overriden to provide custom cache config to internal definition
Overriden to provide custom cache config to internal definition
Overriden to provide custom cache config to internal definition
def to_graphql
        field_defn = super 
        field_defn.metadata[:cache] = @cache_config
        field_defn
      end
def to_graphql field_defn = super field_defn . metadata [ :cache ] = @cache_config field_defn end
Overriden to provide custom cache config to internal definition
Overriden to provide custom cache config to internal definition
# Returns a GraphQL::Field