module GraphQL::StaticValidation::TypeStack::FragmentWithTypeStrategy
Public Instance Methods
pop(stack, node)
click to toggle source
# File lib/graphql/static_validation/type_stack.rb, line 68 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 55 def push(stack, node) object_type = if node.type stack.schema.types.fetch(node.type.name, nil) else stack.object_types.last end if !object_type.nil? object_type = object_type.unwrap end stack.object_types.push(object_type) push_path_member(stack, node) end