class GraphQL::StaticValidation::TypeStack::FieldStrategy
def pop(stack, node)
def pop(stack, node) stack.field_definitions.pop stack.object_types.pop stack.path.pop end
def push(stack, node)
def push(stack, node) parent_type = stack.object_types.last parent_type = parent_type.unwrap field_definition = stack.schema.get_field(parent_type, node.name) stack.field_definitions.push(field_definition) if !field_definition.nil? next_object_type = field_definition.type stack.object_types.push(next_object_type) else stack.object_types.push(nil) end stack.path.push(node.alias || node.name) end