lib/rails/graphql/native/visitor.rb
# Add a directive to the current object
Add a directive to the current object
Add a directive to the current object
def visit_directive(node)
          if @visit&.include?('directive')
            stack << DirectiveObject.new
          else
            (object[:directives] ||= []) << node
          end
        end
def visit_directive ( node ) if @visit &. include? ( 'directive' ) stack << DirectiveObject . new else ( object [ :directives ] ||= [ ] ) << node end end
Add a directive to the current object
Add a directive to the current object
node