module GraphQL::StaticValidation::TypeStack::OperationDefinitionStrategy
Public Instance Methods
pop(stack, node)
click to toggle source
# File lib/graphql/static_validation/type_stack.rb, line 100 def pop(stack, node) stack.object_types.pop stack.path.pop end
push(stack, node)
click to toggle source
# File lib/graphql/static_validation/type_stack.rb, line 93 def push(stack, node) # eg, QueryType, MutationType object_type = stack.schema.root_type_for_operation(node.operation_type) stack.object_types.push(object_type) stack.path.push("#{node.operation_type}#{node.name ? " #{node.name}" : ""}") end