module GraphQL::FragmentCache::Ext
Public Instance Methods
_graphql_cache_key()
click to toggle source
# File lib/graphql/fragment_cache/ext/graphql_cache_key.rb, line 15 def _graphql_cache_key return graphql_cache_key if respond_to?(:graphql_cache_key) return cache_key if respond_to?(:cache_key) return to_a._graphql_cache_key if respond_to?(:to_a) to_s end
fragments()
click to toggle source
# File lib/graphql/fragment_cache/ext/context_fragments.rb, line 13 def fragments namespace(:fragment_cache)[:fragments] ||= [] end
fragments?()
click to toggle source
# File lib/graphql/fragment_cache/ext/context_fragments.rb, line 9 def fragments? namespace(:fragment_cache)[:fragments] end
loaded_fragments()
click to toggle source
# File lib/graphql/fragment_cache/ext/context_fragments.rb, line 17 def loaded_fragments namespace(:fragment_cache)[:loaded] ||= {} end