Class: GraphQL::Introspection::RootCallType

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

Instance Attribute Summary

Attributes inherited from Node

#original_target, #query, #syntax_fields, #target

Instance Method Summary collapse

Methods inherited from Node

#__type__, all_fields, #apply_calls, #as_result, call, calls, #context, cursor, default_schema_name, desc, description, exposes, exposes_class_names, field, #finished_value, #initialize, #method_missing, own_calls, own_fields, remove_field, respond_to_field?, 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



17
18
19
# File 'lib/graphql/introspection/root_call_type.rb', line 17

def arguments
  target.arguments.values
end

#nameObject



13
14
15
# File 'lib/graphql/introspection/root_call_type.rb', line 13

def name
  schema_name
end

#returnsObject



8
9
10
11
# File 'lib/graphql/introspection/root_call_type.rb', line 8

def returns
  return_declarations = @target.return_declarations
  return_declarations.keys.map(&:to_s)
end