lib/graphql/execution/lazy.rb in graphql-2.0.9 vs lib/graphql/execution/lazy.rb in graphql-2.0.11
- old
+ new
@@ -10,16 +10,9 @@
# 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
- # Traverse `val`, lazily resolving any values along the way
- # @param val [Object] A data structure containing mixed plain values and `Lazy` instances
- # @return void
- def self.resolve(val)
- Resolve.resolve(val)
- end
-
attr_reader :path, :field
# Create a {Lazy} which will get its inner value by calling the block
# @param path [Array<String, Integer>]
# @param field [GraphQL::Schema::Field]