class GraphQL::Compatibility::LazyExecutionSpecification::LazySchema::LazyPush
def initialize(ctx, value)
def initialize(ctx, value) if value == 13 @value = nil elsif value == 14 @value = GraphQL::ExecutionError.new("oops!") else @value = value end @context = ctx pushes = @context[:lazy_pushes] ||= [] pushes << @value end
def push
def push if @context[:lazy_pushes].include?(@value) @context[:lazy_instrumentation] && @context[:lazy_instrumentation] << "PUSH" @context[:pushes] << @context[:lazy_pushes] @context[:lazy_pushes] = [] end self end