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



137
138
139
# File 'lib/graphql/static_validation/type_stack.rb', line 137

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

.push(stack, node) ⇒ Object



132
133
134
135
# File 'lib/graphql/static_validation/type_stack.rb', line 132

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