Class: GraphQL::Analyzer::Instrumentation::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/analyzer/instrumentation/base.rb

Direct Known Subclasses

ActiveRecord, ElasticSearch

Instance Method Summary collapse

Instance Method Details

#instrument(type, field) ⇒ Object



5
6
7
# File 'lib/graphql/analyzer/instrumentation/base.rb', line 5

def instrument(type, field)
  resolve_proc(type, field, :resolve_proc)
end

#instrument_lazy(type, field) ⇒ Object



9
10
11
# File 'lib/graphql/analyzer/instrumentation/base.rb', line 9

def instrument_lazy(type, field)
  resolve_proc(type, field, :lazy_resolve_proc)
end