lib/rails/graphql/collectors/hash_collector.rb
# Start a new part of the collector. When set +as_array+, the result
# of the stack will be an array.
Start a new part of the collector. When set +as_array+, the result
of the stack will be an array.
Start a new part of the collector . When set + as_array + the result of the stack will be an array .
def start_stack(as_array = false, plain_array = false)
            @stack << @data
            @stack << [] if as_array && !plain_array
            @data = as_array && plain_array ? [] : {}
          end
def start_stack ( as_array = false , plain_array = false ) @stack << @data @stack << [ ] if as_array && ! plain_array @data = as_array && plain_array ? [ ] : { } end
Start a new part of the collector.
Start a new part of the collector .
as_array
plain_array