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


178
179
180
# File 'lib/graphql/static_validation/type_stack.rb', line 178

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

.push(stack, node) ⇒ Object


174
175
176
# File 'lib/graphql/static_validation/type_stack.rb', line 174

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