lib/rails/graphql/collectors/hash_collector.rb
# Finalize a stack and set the result on the given +key+.
Finalize a stack and set the result on the given +key+.
Finalize a stack and set the result on the given + key + .
def end_stack(key, as_array = false, plain_array = false)
            result = as_array && !plain_array ? @stack.pop : @data
            @data = @stack.pop
            add(key, result)
          end
def end_stack ( key , as_array = false , plain_array = false ) result = as_array && ! plain_array ? @stack . pop : @data @data = @stack . pop add ( key , result ) end
Finalize a stack and set the result on the given +key+.
Finalize a stack and set the result on the given + key + .
key
as_array
plain_array