Class: GraphQL::Introspection::CallNode

Inherits:
Node
  • Object
show all
Defined in:
lib/graphql/introspection/call_node.rb

Instance Attribute Summary

Attributes inherited from Node

#query, #syntax_fields, #target

Instance Method Summary collapse

Methods inherited from Node

all_fields, #as_result, #context, cursor, default_schema_name, desc, description, exposes, field, inherited, #initialize, #method_missing, own_fields, remove_field, ruby_class_name, schema_name, type

Constructor Details

This class inherits a constructor from GraphQL::Node

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GraphQL::Node

Instance Method Details

#argumentsObject



6
7
8
9
10
11
12
# File 'lib/graphql/introspection/call_node.rb', line 6

def arguments
  args = target.lambda.parameters
  args.shift
  args.map { |p| "#{p[1]} (#{p[0]})" }.join(", ")
rescue StandardError => e
  raise "Errored on #{name} (#{self}): #{e}"
end