Class: GraphQL::Query::ValueResolution::BaseResolution

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/query/value_resolution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, field_type, target, parent_type, ast_field, query, execution_strategy) ⇒ BaseResolution

Returns a new instance of BaseResolution.



11
12
13
14
15
16
17
18
19
# File 'lib/graphql/query/value_resolution.rb', line 11

def initialize(value, field_type, target, parent_type, ast_field, query, execution_strategy)
  @value = value
  @field_type = field_type
  @target = target
  @parent_type = parent_type
  @ast_field = ast_field
  @query = query
  @execution_strategy = execution_strategy
end

Instance Attribute Details

#ast_fieldObject (readonly)

Returns the value of attribute ast_field.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def ast_field
  @ast_field
end

#execution_strategyObject (readonly)

Returns the value of attribute execution_strategy.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def execution_strategy
  @execution_strategy
end

#field_typeObject (readonly)

Returns the value of attribute field_type.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def field_type
  @field_type
end

#parent_typeObject (readonly)

Returns the value of attribute parent_type.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def parent_type
  @parent_type
end

#queryObject (readonly)

Returns the value of attribute query.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def query
  @query
end

#targetObject (readonly)

Returns the value of attribute target.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def target
  @target
end

#valueObject (readonly)

Returns the value of attribute value.



9
10
11
# File 'lib/graphql/query/value_resolution.rb', line 9

def value
  @value
end

Instance Method Details

#resultObject

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/graphql/query/value_resolution.rb', line 21

def result
  raise NotImplementedError, "Should return a value based on initialization params"
end