Method: GraphQL::StaticValidation::BaseVisitor::ContextMethods#argument_definition
- Defined in:
- lib/graphql/static_validation/base_visitor.rb
#argument_definition ⇒ GraphQL::Argument?
Returns The most-recently-entered GraphQL::Argument, if currently inside one.
164 165 166 167 168 |
# File 'lib/graphql/static_validation/base_visitor.rb', line 164 def argument_definition # Don't get the _last_ one because that's the current one. # Get the second-to-last one, which is the parent of the current one. @argument_definitions[-2] end |