Module: GraphQL::StaticValidation::TypeStack::FragmentSpreadStrategy

Defined in:
lib/graphql/static_validation/type_stack.rb

Class Method Summary collapse

Class Method Details

.pop(stack, node) ⇒ Object


180
181
182
# File 'lib/graphql/static_validation/type_stack.rb', line 180

def pop(stack, node)
  stack.path.pop
end

.push(stack, node) ⇒ Object


176
177
178
# File 'lib/graphql/static_validation/type_stack.rb', line 176

def push(stack, node)
  stack.path.push("... #{node.name}")
end