Module: GraphQL::StaticValidation::TypeStack::DirectiveStrategy

Defined in:
lib/graphql/static_validation/type_stack.rb

Class Method Summary collapse

Class Method Details

.pop(stack, node) ⇒ Object


139
140
141
# File 'lib/graphql/static_validation/type_stack.rb', line 139

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

.push(stack, node) ⇒ Object


134
135
136
137
# File 'lib/graphql/static_validation/type_stack.rb', line 134

def push(stack, node)
  directive_defn = stack.schema.directives[node.name]
  stack.directive_definitions.push(directive_defn)
end