Module: GraphQL::FragmentCache::Object

Defined in:
lib/graphql/fragment_cache/object.rb

Overview

Adds #cache_fragment method and kwarg option

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
# File 'lib/graphql/fragment_cache/object.rb', line 10

def self.included(base)
  base.include(GraphQL::FragmentCache::ObjectHelpers)
  base.field_class.prepend(GraphQL::FragmentCache::FieldExtension::Patch)
end