Class: GraphQL::StaticValidation::TypeStack::OperationDefinitionStrategy
- Inherits:
-
Object
- Object
- GraphQL::StaticValidation::TypeStack::OperationDefinitionStrategy
- Defined in:
- lib/graph_ql/static_validation/type_stack.rb
Instance Method Summary collapse
Instance Method Details
#pop(stack, node) ⇒ Object
54 55 56 |
# File 'lib/graph_ql/static_validation/type_stack.rb', line 54 def pop(stack, node) stack.object_types.pop end |
#push(stack, node) ⇒ Object
49 50 51 52 53 |
# File 'lib/graph_ql/static_validation/type_stack.rb', line 49 def push(stack, node) # query or mutation object_type = stack.schema.public_send(node.operation_type) stack.object_types.push(object_type) end |