Class: GraphQL::StaticValidation::TypeStack::DirectiveStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/static_validation/type_stack.rb

Instance Method Summary collapse

Instance Method Details

#pop(stack, node) ⇒ Object



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

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

#push(stack, node) ⇒ Object



129
130
131
132
# File 'lib/graphql/static_validation/type_stack.rb', line 129

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