Method: GraphQL::Language::Visitor#on_operation_definition_children
- Defined in:
- lib/graphql/language/visitor.rb
#on_operation_definition_children(new_node) ⇒ Object
129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/graphql/language/visitor.rb', line 129 def on_operation_definition_children(new_node) new_node.variables.each do |arg_node| new_child_and_node = on_variable_definition_with_modifications(arg_node, new_node) # Reassign `node` in case the child hook makes a modification if new_child_and_node.is_a?(Array) new_node = new_child_and_node[1] end end new_node = visit_directives(new_node) new_node = visit_selections(new_node) new_node end |