lib/rails/graphql/collectors/json_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)
            if as_array && !plain_array
              @current_value = @stack_value.pop
              @current_array = @stack_array.pop
            end
            result = to_s
            @current_value = @stack_value.pop
            @current_array = @stack_array.pop
            add(key, result)
          end
def end_stack ( key , as_array = false , plain_array = false ) if as_array && ! plain_array @current_value = @stack_value . pop @current_array = @stack_array . pop end result = to_s @current_value = @stack_value . pop @current_array = @stack_array . 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