lib/graphql/execution/lazy.rb in graphql-2.0.17.2 vs lib/graphql/execution/lazy.rb in graphql-2.0.18
- old
+ new
@@ -10,19 +10,17 @@
# This is an itty-bitty promise-like object, with key differences:
# - It has only two states, not-resolved and resolved
# - It has no error-catching functionality
# @api private
class Lazy
- attr_reader :path, :field
+ attr_reader :field
# Create a {Lazy} which will get its inner value by calling the block
- # @param path [Array<String, Integer>]
# @param field [GraphQL::Schema::Field]
# @param get_value_func [Proc] a block to get the inner value (later)
- def initialize(path: nil, field: nil, &get_value_func)
+ def initialize(field: nil, &get_value_func)
@get_value_func = get_value_func
@resolved = false
- @path = path
@field = field
end
# @return [Object] The wrapped value, calling the lazy block if necessary
def value