Module: Graphql::EagerLoad::Resolver::ClassMethods

Defined in:
lib/graphql/eager_load/resolver.rb

Overview

specify the ActiveRecord model that corresponds to the top level type in the graphql query for this resolver.

Instance Method Summary collapse

Instance Method Details

#eager_load_model(model) ⇒ Object



22
23
24
25
26
# File 'lib/graphql/eager_load/resolver.rb', line 22

def eager_load_model(model)
  # rubocop:disable Style/ClassVars
  class_variable_set(:@@eager_load_model, model)
  # rubocop:enable Style/ClassVars
end