graphql 1.9.17 → 1.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of graphql might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/generators/graphql/core.rb +18 -2
- data/lib/generators/graphql/install_generator.rb +27 -0
- data/lib/generators/graphql/object_generator.rb +52 -8
- data/lib/generators/graphql/templates/base_argument.erb +2 -0
- data/lib/generators/graphql/templates/base_enum.erb +2 -0
- data/lib/generators/graphql/templates/base_field.erb +2 -0
- data/lib/generators/graphql/templates/base_input_object.erb +2 -0
- data/lib/generators/graphql/templates/base_interface.erb +2 -0
- data/lib/generators/graphql/templates/base_mutation.erb +2 -0
- data/lib/generators/graphql/templates/base_object.erb +2 -0
- data/lib/generators/graphql/templates/base_scalar.erb +2 -0
- data/lib/generators/graphql/templates/base_union.erb +2 -0
- data/lib/generators/graphql/templates/enum.erb +2 -0
- data/lib/generators/graphql/templates/graphql_controller.erb +14 -10
- data/lib/generators/graphql/templates/interface.erb +2 -0
- data/lib/generators/graphql/templates/loader.erb +2 -0
- data/lib/generators/graphql/templates/mutation.erb +2 -0
- data/lib/generators/graphql/templates/mutation_type.erb +2 -0
- data/lib/generators/graphql/templates/object.erb +2 -0
- data/lib/generators/graphql/templates/query_type.erb +2 -0
- data/lib/generators/graphql/templates/scalar.erb +2 -0
- data/lib/generators/graphql/templates/schema.erb +10 -0
- data/lib/generators/graphql/templates/union.erb +3 -1
- data/lib/graphql/analysis/ast/field_usage.rb +1 -1
- data/lib/graphql/analysis/ast/query_complexity.rb +178 -67
- data/lib/graphql/analysis/ast/visitor.rb +3 -3
- data/lib/graphql/analysis/ast.rb +12 -11
- data/lib/graphql/argument.rb +10 -38
- data/lib/graphql/backtrace/table.rb +10 -2
- data/lib/graphql/backtrace/tracer.rb +2 -1
- data/lib/graphql/base_type.rb +4 -0
- data/lib/graphql/compatibility/execution_specification/specification_schema.rb +2 -2
- data/lib/graphql/compatibility/query_parser_specification/parse_error_specification.rb +5 -9
- data/lib/graphql/define/assign_enum_value.rb +1 -1
- data/lib/graphql/define/assign_global_id_field.rb +2 -2
- data/lib/graphql/define/assign_object_field.rb +3 -3
- data/lib/graphql/define/defined_object_proxy.rb +3 -0
- data/lib/graphql/define/instance_definable.rb +18 -108
- data/lib/graphql/directive/deprecated_directive.rb +1 -12
- data/lib/graphql/directive.rb +8 -1
- data/lib/graphql/enum_type.rb +5 -71
- data/lib/graphql/execution/directive_checks.rb +2 -2
- data/lib/graphql/execution/errors.rb +2 -3
- data/lib/graphql/execution/execute.rb +1 -1
- data/lib/graphql/execution/instrumentation.rb +1 -1
- data/lib/graphql/execution/interpreter/argument_value.rb +28 -0
- data/lib/graphql/execution/interpreter/arguments.rb +51 -0
- data/lib/graphql/execution/interpreter/arguments_cache.rb +79 -0
- data/lib/graphql/execution/interpreter/handles_raw_value.rb +25 -0
- data/lib/graphql/execution/interpreter/runtime.rb +227 -254
- data/lib/graphql/execution/interpreter.rb +34 -11
- data/lib/graphql/execution/lazy/lazy_method_map.rb +4 -0
- data/lib/graphql/execution/lookahead.rb +39 -114
- data/lib/graphql/execution/multiplex.rb +14 -5
- data/lib/graphql/field.rb +14 -118
- data/lib/graphql/filter.rb +1 -1
- data/lib/graphql/function.rb +1 -30
- data/lib/graphql/input_object_type.rb +6 -24
- data/lib/graphql/integer_decoding_error.rb +17 -0
- data/lib/graphql/interface_type.rb +7 -23
- data/lib/graphql/internal_representation/scope.rb +2 -2
- data/lib/graphql/internal_representation/visit.rb +2 -2
- data/lib/graphql/introspection/base_object.rb +2 -5
- data/lib/graphql/introspection/directive_type.rb +1 -1
- data/lib/graphql/introspection/entry_points.rb +7 -7
- data/lib/graphql/introspection/field_type.rb +7 -3
- data/lib/graphql/introspection/input_value_type.rb +33 -9
- data/lib/graphql/introspection/introspection_query.rb +6 -92
- data/lib/graphql/introspection/schema_type.rb +4 -9
- data/lib/graphql/introspection/type_type.rb +11 -7
- data/lib/graphql/introspection.rb +96 -0
- data/lib/graphql/invalid_null_error.rb +18 -0
- data/lib/graphql/language/block_string.rb +24 -5
- data/lib/graphql/language/definition_slice.rb +21 -10
- data/lib/graphql/language/document_from_schema_definition.rb +89 -64
- data/lib/graphql/language/lexer.rb +7 -3
- data/lib/graphql/language/lexer.rl +7 -3
- data/lib/graphql/language/nodes.rb +52 -91
- data/lib/graphql/language/parser.rb +719 -717
- data/lib/graphql/language/parser.y +104 -98
- data/lib/graphql/language/printer.rb +1 -1
- data/lib/graphql/language/sanitized_printer.rb +222 -0
- data/lib/graphql/language/visitor.rb +2 -2
- data/lib/graphql/language.rb +2 -1
- data/lib/graphql/name_validator.rb +6 -7
- data/lib/graphql/non_null_type.rb +0 -10
- data/lib/graphql/object_type.rb +45 -56
- data/lib/graphql/pagination/active_record_relation_connection.rb +41 -0
- data/lib/graphql/pagination/array_connection.rb +77 -0
- data/lib/graphql/pagination/connection.rb +208 -0
- data/lib/graphql/pagination/connections.rb +145 -0
- data/lib/graphql/pagination/mongoid_relation_connection.rb +25 -0
- data/lib/graphql/pagination/relation_connection.rb +185 -0
- data/lib/graphql/pagination/sequel_dataset_connection.rb +28 -0
- data/lib/graphql/pagination.rb +6 -0
- data/lib/graphql/query/arguments.rb +4 -2
- data/lib/graphql/query/context.rb +36 -9
- data/lib/graphql/query/fingerprint.rb +26 -0
- data/lib/graphql/query/input_validation_result.rb +23 -6
- data/lib/graphql/query/literal_input.rb +30 -10
- data/lib/graphql/query/null_context.rb +5 -1
- data/lib/graphql/query/validation_pipeline.rb +4 -1
- data/lib/graphql/query/variable_validation_error.rb +1 -1
- data/lib/graphql/query/variables.rb +16 -7
- data/lib/graphql/query.rb +64 -15
- data/lib/graphql/rake_task/validate.rb +3 -0
- data/lib/graphql/rake_task.rb +9 -9
- data/lib/graphql/relay/array_connection.rb +10 -12
- data/lib/graphql/relay/base_connection.rb +23 -13
- data/lib/graphql/relay/connection_type.rb +2 -1
- data/lib/graphql/relay/edge_type.rb +1 -0
- data/lib/graphql/relay/edges_instrumentation.rb +1 -1
- data/lib/graphql/relay/mutation.rb +1 -86
- data/lib/graphql/relay/node.rb +2 -2
- data/lib/graphql/relay/range_add.rb +14 -5
- data/lib/graphql/relay/relation_connection.rb +8 -10
- data/lib/graphql/scalar_type.rb +15 -59
- data/lib/graphql/schema/argument.rb +113 -11
- data/lib/graphql/schema/base_64_encoder.rb +2 -0
- data/lib/graphql/schema/build_from_definition/resolve_map/default_resolve.rb +1 -1
- data/lib/graphql/schema/build_from_definition/resolve_map.rb +13 -5
- data/lib/graphql/schema/build_from_definition.rb +212 -190
- data/lib/graphql/schema/built_in_types.rb +5 -5
- data/lib/graphql/schema/default_type_error.rb +2 -0
- data/lib/graphql/schema/directive/deprecated.rb +18 -0
- data/lib/graphql/schema/directive/include.rb +1 -1
- data/lib/graphql/schema/directive/skip.rb +1 -1
- data/lib/graphql/schema/directive.rb +34 -3
- data/lib/graphql/schema/enum.rb +52 -4
- data/lib/graphql/schema/enum_value.rb +6 -1
- data/lib/graphql/schema/field/connection_extension.rb +44 -20
- data/lib/graphql/schema/field/scope_extension.rb +1 -1
- data/lib/graphql/schema/field.rb +200 -129
- data/lib/graphql/schema/find_inherited_value.rb +13 -0
- data/lib/graphql/schema/finder.rb +13 -11
- data/lib/graphql/schema/input_object.rb +131 -22
- data/lib/graphql/schema/interface.rb +26 -8
- data/lib/graphql/schema/introspection_system.rb +108 -37
- data/lib/graphql/schema/late_bound_type.rb +3 -2
- data/lib/graphql/schema/list.rb +47 -0
- data/lib/graphql/schema/loader.rb +134 -96
- data/lib/graphql/schema/member/base_dsl_methods.rb +29 -12
- data/lib/graphql/schema/member/build_type.rb +19 -5
- data/lib/graphql/schema/member/cached_graphql_definition.rb +5 -0
- data/lib/graphql/schema/member/has_arguments.rb +105 -5
- data/lib/graphql/schema/member/has_ast_node.rb +20 -0
- data/lib/graphql/schema/member/has_fields.rb +20 -10
- data/lib/graphql/schema/member/has_unresolved_type_error.rb +15 -0
- data/lib/graphql/schema/member/type_system_helpers.rb +2 -2
- data/lib/graphql/schema/member/validates_input.rb +33 -0
- data/lib/graphql/schema/member.rb +6 -0
- data/lib/graphql/schema/mutation.rb +5 -1
- data/lib/graphql/schema/non_null.rb +30 -0
- data/lib/graphql/schema/object.rb +65 -12
- data/lib/graphql/schema/possible_types.rb +9 -4
- data/lib/graphql/schema/printer.rb +0 -15
- data/lib/graphql/schema/relay_classic_mutation.rb +5 -3
- data/lib/graphql/schema/resolver/has_payload_type.rb +5 -2
- data/lib/graphql/schema/resolver.rb +26 -18
- data/lib/graphql/schema/scalar.rb +27 -3
- data/lib/graphql/schema/subscription.rb +8 -18
- data/lib/graphql/schema/timeout.rb +29 -15
- data/lib/graphql/schema/traversal.rb +1 -1
- data/lib/graphql/schema/type_expression.rb +21 -13
- data/lib/graphql/schema/type_membership.rb +2 -2
- data/lib/graphql/schema/union.rb +37 -3
- data/lib/graphql/schema/unique_within_type.rb +1 -2
- data/lib/graphql/schema/validation.rb +10 -2
- data/lib/graphql/schema/warden.rb +115 -29
- data/lib/graphql/schema.rb +903 -195
- data/lib/graphql/static_validation/all_rules.rb +1 -0
- data/lib/graphql/static_validation/base_visitor.rb +10 -6
- data/lib/graphql/static_validation/literal_validator.rb +52 -27
- data/lib/graphql/static_validation/rules/argument_literals_are_compatible.rb +43 -83
- data/lib/graphql/static_validation/rules/argument_literals_are_compatible_error.rb +17 -5
- data/lib/graphql/static_validation/rules/arguments_are_defined.rb +33 -25
- data/lib/graphql/static_validation/rules/directives_are_in_valid_locations.rb +1 -1
- data/lib/graphql/static_validation/rules/fields_are_defined_on_type.rb +4 -4
- data/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb +5 -5
- data/lib/graphql/static_validation/rules/fields_will_merge.rb +29 -21
- data/lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb +3 -3
- data/lib/graphql/static_validation/rules/input_object_names_are_unique.rb +30 -0
- data/lib/graphql/static_validation/rules/input_object_names_are_unique_error.rb +30 -0
- data/lib/graphql/static_validation/rules/required_arguments_are_present.rb +2 -2
- data/lib/graphql/static_validation/rules/required_input_object_attributes_are_present.rb +4 -5
- data/lib/graphql/static_validation/rules/variable_default_values_are_correctly_typed.rb +12 -13
- data/lib/graphql/static_validation/rules/variable_usages_are_allowed.rb +5 -6
- data/lib/graphql/static_validation/rules/variables_are_input_types.rb +1 -1
- data/lib/graphql/static_validation/rules/variables_are_used_and_defined.rb +5 -3
- data/lib/graphql/static_validation/type_stack.rb +2 -2
- data/lib/graphql/static_validation/validation_context.rb +1 -1
- data/lib/graphql/static_validation/validation_timeout_error.rb +25 -0
- data/lib/graphql/static_validation/validator.rb +30 -8
- data/lib/graphql/static_validation.rb +1 -0
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +89 -19
- data/lib/graphql/subscriptions/broadcast_analyzer.rb +84 -0
- data/lib/graphql/subscriptions/default_subscription_resolve_extension.rb +21 -0
- data/lib/graphql/subscriptions/event.rb +23 -5
- data/lib/graphql/subscriptions/instrumentation.rb +10 -5
- data/lib/graphql/subscriptions/serialize.rb +22 -4
- data/lib/graphql/subscriptions/subscription_root.rb +15 -5
- data/lib/graphql/subscriptions.rb +108 -35
- data/lib/graphql/tracing/active_support_notifications_tracing.rb +14 -10
- data/lib/graphql/tracing/appoptics_tracing.rb +171 -0
- data/lib/graphql/tracing/appsignal_tracing.rb +8 -0
- data/lib/graphql/tracing/data_dog_tracing.rb +8 -0
- data/lib/graphql/tracing/new_relic_tracing.rb +9 -12
- data/lib/graphql/tracing/platform_tracing.rb +53 -9
- data/lib/graphql/tracing/prometheus_tracing/graphql_collector.rb +4 -1
- data/lib/graphql/tracing/prometheus_tracing.rb +8 -0
- data/lib/graphql/tracing/scout_tracing.rb +19 -0
- data/lib/graphql/tracing/skylight_tracing.rb +8 -0
- data/lib/graphql/tracing/statsd_tracing.rb +42 -0
- data/lib/graphql/tracing.rb +14 -34
- data/lib/graphql/types/big_int.rb +1 -1
- data/lib/graphql/types/int.rb +9 -2
- data/lib/graphql/types/iso_8601_date.rb +3 -3
- data/lib/graphql/types/iso_8601_date_time.rb +25 -10
- data/lib/graphql/types/relay/base_connection.rb +11 -7
- data/lib/graphql/types/relay/base_edge.rb +2 -1
- data/lib/graphql/types/string.rb +7 -1
- data/lib/graphql/unauthorized_error.rb +1 -1
- data/lib/graphql/union_type.rb +13 -28
- data/lib/graphql/unresolved_type_error.rb +2 -2
- data/lib/graphql/version.rb +1 -1
- data/lib/graphql.rb +31 -6
- data/readme.md +1 -1
- metadata +34 -9
- data/lib/graphql/literal_validation_error.rb +0 -6
@@ -25,7 +25,7 @@ module GraphQL
|
|
25
25
|
# Initialize a node by extracting its position,
|
26
26
|
# then calling the class's `initialize_node` method.
|
27
27
|
# @param options [Hash] Initial attributes for this node
|
28
|
-
def initialize(options={})
|
28
|
+
def initialize(options = {})
|
29
29
|
if options.key?(:position_source)
|
30
30
|
position_source = options.delete(:position_source)
|
31
31
|
@line = position_source.line
|
@@ -34,16 +34,16 @@ module GraphQL
|
|
34
34
|
|
35
35
|
@filename = options.delete(:filename)
|
36
36
|
|
37
|
-
initialize_node(options)
|
37
|
+
initialize_node(**options)
|
38
38
|
end
|
39
39
|
|
40
40
|
# Value equality
|
41
41
|
# @return [Boolean] True if `self` is equivalent to `other`
|
42
|
-
def
|
42
|
+
def ==(other)
|
43
43
|
return true if equal?(other)
|
44
|
-
other.
|
45
|
-
other.scalars
|
46
|
-
other.children
|
44
|
+
other.kind_of?(self.class) &&
|
45
|
+
other.scalars == self.scalars &&
|
46
|
+
other.children == self.children
|
47
47
|
end
|
48
48
|
|
49
49
|
NO_CHILDREN = [].freeze
|
@@ -65,9 +65,8 @@ module GraphQL
|
|
65
65
|
@query_string = nil
|
66
66
|
end
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
raise GraphQL::RequiredImplementationMissingError, "#{self.class.name}#visit_method shold return a symbol"
|
68
|
+
def children_method_name
|
69
|
+
self.class.children_method_name
|
71
70
|
end
|
72
71
|
|
73
72
|
def position
|
@@ -147,9 +146,10 @@ module GraphQL
|
|
147
146
|
:on_#{name_underscored}
|
148
147
|
end
|
149
148
|
|
150
|
-
|
151
|
-
|
149
|
+
class << self
|
150
|
+
attr_accessor :children_method_name
|
152
151
|
end
|
152
|
+
self.children_method_name = :#{name_underscored}s
|
153
153
|
RUBY
|
154
154
|
end
|
155
155
|
|
@@ -161,7 +161,7 @@ module GraphQL
|
|
161
161
|
# - Add a persistent update method to add a child
|
162
162
|
# - Generate a `#children` method
|
163
163
|
def children_methods(children_of_type)
|
164
|
-
if @children_methods
|
164
|
+
if defined?(@children_methods)
|
165
165
|
raise "Can't re-call .children_methods for #{self} (already have: #{@children_methods})"
|
166
166
|
else
|
167
167
|
@children_methods = children_of_type
|
@@ -204,7 +204,11 @@ module GraphQL
|
|
204
204
|
end
|
205
205
|
|
206
206
|
if defined?(@scalar_methods)
|
207
|
-
|
207
|
+
if !method_defined?(:initialize_node)
|
208
|
+
generate_initialize_node
|
209
|
+
else
|
210
|
+
# This method was defined manually
|
211
|
+
end
|
208
212
|
else
|
209
213
|
raise "Can't generate_initialize_node because scalar_methods wasn't called; call it before children_methods"
|
210
214
|
end
|
@@ -214,7 +218,7 @@ module GraphQL
|
|
214
218
|
# - Add reader methods
|
215
219
|
# - Add a `#scalars` method
|
216
220
|
def scalar_methods(*method_names)
|
217
|
-
if @scalar_methods
|
221
|
+
if defined?(@scalar_methods)
|
218
222
|
raise "Can't re-call .scalar_methods for #{self} (already have: #{@scalar_methods})"
|
219
223
|
else
|
220
224
|
@scalar_methods = method_names
|
@@ -251,7 +255,7 @@ module GraphQL
|
|
251
255
|
return
|
252
256
|
else
|
253
257
|
arguments = scalar_method_names.map { |m| "#{m}: nil"} +
|
254
|
-
@children_methods.keys.map { |m| "#{m}:
|
258
|
+
@children_methods.keys.map { |m| "#{m}: NO_CHILDREN" }
|
255
259
|
|
256
260
|
assignments = scalar_method_names.map { |m| "@#{m} = #{m}"} +
|
257
261
|
@children_methods.keys.map { |m| "@#{m} = #{m}.freeze" }
|
@@ -373,19 +377,11 @@ module GraphQL
|
|
373
377
|
end
|
374
378
|
|
375
379
|
# Override this because default is `:fields`
|
376
|
-
|
377
|
-
:selections
|
378
|
-
end
|
380
|
+
self.children_method_name = :selections
|
379
381
|
end
|
380
382
|
|
381
383
|
# A reusable fragment, defined at document-level.
|
382
384
|
class FragmentDefinition < AbstractNode
|
383
|
-
scalar_methods :name, :type
|
384
|
-
children_methods({
|
385
|
-
selections: GraphQL::Language::Nodes::Field,
|
386
|
-
directives: GraphQL::Language::Nodes::Directive,
|
387
|
-
})
|
388
|
-
|
389
385
|
# @!attribute name
|
390
386
|
# @return [String] the identifier for this fragment, which may be applied with `...#{name}`
|
391
387
|
|
@@ -398,9 +394,13 @@ module GraphQL
|
|
398
394
|
@selections = selections
|
399
395
|
end
|
400
396
|
|
401
|
-
|
402
|
-
|
403
|
-
|
397
|
+
scalar_methods :name, :type
|
398
|
+
children_methods({
|
399
|
+
selections: GraphQL::Language::Nodes::Field,
|
400
|
+
directives: GraphQL::Language::Nodes::Directive,
|
401
|
+
})
|
402
|
+
|
403
|
+
self.children_method_name = :definitions
|
404
404
|
end
|
405
405
|
|
406
406
|
# Application of a named fragment in a selection
|
@@ -408,9 +408,7 @@ module GraphQL
|
|
408
408
|
scalar_methods :name
|
409
409
|
children_methods(directives: GraphQL::Language::Nodes::Directive)
|
410
410
|
|
411
|
-
|
412
|
-
:selections
|
413
|
-
end
|
411
|
+
self.children_method_name = :selections
|
414
412
|
|
415
413
|
# @!attribute name
|
416
414
|
# @return [String] The identifier of the fragment to apply, corresponds with {FragmentDefinition#name}
|
@@ -424,9 +422,7 @@ module GraphQL
|
|
424
422
|
directives: GraphQL::Language::Nodes::Directive,
|
425
423
|
})
|
426
424
|
|
427
|
-
|
428
|
-
:selections
|
429
|
-
end
|
425
|
+
self.children_method_name = :selections
|
430
426
|
|
431
427
|
# @!attribute type
|
432
428
|
# @return [String, nil] Name of the type this fragment applies to, or `nil` if this fragment applies to any type
|
@@ -449,9 +445,7 @@ module GraphQL
|
|
449
445
|
end
|
450
446
|
end
|
451
447
|
|
452
|
-
|
453
|
-
:value
|
454
|
-
end
|
448
|
+
self.children_method_name = :value
|
455
449
|
|
456
450
|
private
|
457
451
|
|
@@ -494,6 +488,8 @@ module GraphQL
|
|
494
488
|
|
495
489
|
# @!attribute name
|
496
490
|
# @return [String] The identifier for this variable, _without_ `$`
|
491
|
+
|
492
|
+
self.children_method_name = :variables
|
497
493
|
end
|
498
494
|
|
499
495
|
# A query, mutation or subscription.
|
@@ -508,7 +504,7 @@ module GraphQL
|
|
508
504
|
})
|
509
505
|
|
510
506
|
# @!attribute variables
|
511
|
-
# @return [Array<VariableDefinition>] Variable definitions for this operation
|
507
|
+
# @return [Array<VariableDefinition>] Variable $definitions for this operation
|
512
508
|
|
513
509
|
# @!attribute selections
|
514
510
|
# @return [Array<Field>] Root-level fields on this operation
|
@@ -519,9 +515,7 @@ module GraphQL
|
|
519
515
|
# @!attribute name
|
520
516
|
# @return [String, nil] The name for this operation, or `nil` if unnamed
|
521
517
|
|
522
|
-
|
523
|
-
:definitions
|
524
|
-
end
|
518
|
+
self.children_method_name = :definitions
|
525
519
|
end
|
526
520
|
|
527
521
|
# A type name, used for variable definitions
|
@@ -530,6 +524,7 @@ module GraphQL
|
|
530
524
|
|
531
525
|
# Usage of a variable in a query. Name does _not_ include `$`.
|
532
526
|
class VariableIdentifier < NameOnlyNode
|
527
|
+
self.children_method_name = :value
|
533
528
|
end
|
534
529
|
|
535
530
|
class SchemaDefinition < AbstractNode
|
@@ -538,9 +533,7 @@ module GraphQL
|
|
538
533
|
children_methods({
|
539
534
|
directives: GraphQL::Language::Nodes::Directive,
|
540
535
|
})
|
541
|
-
|
542
|
-
:definitions
|
543
|
-
end
|
536
|
+
self.children_method_name = :definitions
|
544
537
|
end
|
545
538
|
|
546
539
|
class SchemaExtension < AbstractNode
|
@@ -548,9 +541,7 @@ module GraphQL
|
|
548
541
|
children_methods({
|
549
542
|
directives: GraphQL::Language::Nodes::Directive,
|
550
543
|
})
|
551
|
-
|
552
|
-
:definitions
|
553
|
-
end
|
544
|
+
self.children_method_name = :definitions
|
554
545
|
end
|
555
546
|
|
556
547
|
class ScalarTypeDefinition < AbstractNode
|
@@ -560,9 +551,7 @@ module GraphQL
|
|
560
551
|
children_methods({
|
561
552
|
directives: GraphQL::Language::Nodes::Directive,
|
562
553
|
})
|
563
|
-
|
564
|
-
:definitions
|
565
|
-
end
|
554
|
+
self.children_method_name = :definitions
|
566
555
|
end
|
567
556
|
|
568
557
|
class ScalarTypeExtension < AbstractNode
|
@@ -570,9 +559,7 @@ module GraphQL
|
|
570
559
|
children_methods({
|
571
560
|
directives: GraphQL::Language::Nodes::Directive,
|
572
561
|
})
|
573
|
-
|
574
|
-
:definitions
|
575
|
-
end
|
562
|
+
self.children_method_name = :definitions
|
576
563
|
end
|
577
564
|
|
578
565
|
class InputValueDefinition < AbstractNode
|
@@ -582,9 +569,7 @@ module GraphQL
|
|
582
569
|
children_methods({
|
583
570
|
directives: GraphQL::Language::Nodes::Directive,
|
584
571
|
})
|
585
|
-
|
586
|
-
:fields
|
587
|
-
end
|
572
|
+
self.children_method_name = :fields
|
588
573
|
end
|
589
574
|
|
590
575
|
class FieldDefinition < AbstractNode
|
@@ -595,9 +580,7 @@ module GraphQL
|
|
595
580
|
directives: GraphQL::Language::Nodes::Directive,
|
596
581
|
arguments: GraphQL::Language::Nodes::InputValueDefinition,
|
597
582
|
})
|
598
|
-
|
599
|
-
:fields
|
600
|
-
end
|
583
|
+
self.children_method_name = :fields
|
601
584
|
|
602
585
|
# this is so that `children_method_name` of `InputValueDefinition` works properly
|
603
586
|
# with `#replace_child`
|
@@ -618,9 +601,7 @@ module GraphQL
|
|
618
601
|
directives: GraphQL::Language::Nodes::Directive,
|
619
602
|
fields: GraphQL::Language::Nodes::FieldDefinition,
|
620
603
|
})
|
621
|
-
|
622
|
-
:definitions
|
623
|
-
end
|
604
|
+
self.children_method_name = :definitions
|
624
605
|
end
|
625
606
|
|
626
607
|
class ObjectTypeExtension < AbstractNode
|
@@ -629,9 +610,7 @@ module GraphQL
|
|
629
610
|
directives: GraphQL::Language::Nodes::Directive,
|
630
611
|
fields: GraphQL::Language::Nodes::FieldDefinition,
|
631
612
|
})
|
632
|
-
|
633
|
-
:definitions
|
634
|
-
end
|
613
|
+
self.children_method_name = :definitions
|
635
614
|
end
|
636
615
|
|
637
616
|
class InterfaceTypeDefinition < AbstractNode
|
@@ -642,9 +621,7 @@ module GraphQL
|
|
642
621
|
directives: GraphQL::Language::Nodes::Directive,
|
643
622
|
fields: GraphQL::Language::Nodes::FieldDefinition,
|
644
623
|
})
|
645
|
-
|
646
|
-
:definitions
|
647
|
-
end
|
624
|
+
self.children_method_name = :definitions
|
648
625
|
end
|
649
626
|
|
650
627
|
class InterfaceTypeExtension < AbstractNode
|
@@ -653,9 +630,7 @@ module GraphQL
|
|
653
630
|
directives: GraphQL::Language::Nodes::Directive,
|
654
631
|
fields: GraphQL::Language::Nodes::FieldDefinition,
|
655
632
|
})
|
656
|
-
|
657
|
-
:definitions
|
658
|
-
end
|
633
|
+
self.children_method_name = :definitions
|
659
634
|
end
|
660
635
|
|
661
636
|
class UnionTypeDefinition < AbstractNode
|
@@ -665,9 +640,7 @@ module GraphQL
|
|
665
640
|
children_methods({
|
666
641
|
directives: GraphQL::Language::Nodes::Directive,
|
667
642
|
})
|
668
|
-
|
669
|
-
:definitions
|
670
|
-
end
|
643
|
+
self.children_method_name = :definitions
|
671
644
|
end
|
672
645
|
|
673
646
|
class UnionTypeExtension < AbstractNode
|
@@ -676,9 +649,7 @@ module GraphQL
|
|
676
649
|
children_methods({
|
677
650
|
directives: GraphQL::Language::Nodes::Directive,
|
678
651
|
})
|
679
|
-
|
680
|
-
:definitions
|
681
|
-
end
|
652
|
+
self.children_method_name = :definitions
|
682
653
|
end
|
683
654
|
|
684
655
|
class EnumValueDefinition < AbstractNode
|
@@ -688,9 +659,7 @@ module GraphQL
|
|
688
659
|
children_methods({
|
689
660
|
directives: GraphQL::Language::Nodes::Directive,
|
690
661
|
})
|
691
|
-
|
692
|
-
:values
|
693
|
-
end
|
662
|
+
self.children_method_name = :values
|
694
663
|
end
|
695
664
|
|
696
665
|
class EnumTypeDefinition < AbstractNode
|
@@ -701,9 +670,7 @@ module GraphQL
|
|
701
670
|
directives: GraphQL::Language::Nodes::Directive,
|
702
671
|
values: GraphQL::Language::Nodes::EnumValueDefinition,
|
703
672
|
})
|
704
|
-
|
705
|
-
:definitions
|
706
|
-
end
|
673
|
+
self.children_method_name = :definitions
|
707
674
|
end
|
708
675
|
|
709
676
|
class EnumTypeExtension < AbstractNode
|
@@ -712,9 +679,7 @@ module GraphQL
|
|
712
679
|
directives: GraphQL::Language::Nodes::Directive,
|
713
680
|
values: GraphQL::Language::Nodes::EnumValueDefinition,
|
714
681
|
})
|
715
|
-
|
716
|
-
:definitions
|
717
|
-
end
|
682
|
+
self.children_method_name = :definitions
|
718
683
|
end
|
719
684
|
|
720
685
|
class InputObjectTypeDefinition < AbstractNode
|
@@ -725,9 +690,7 @@ module GraphQL
|
|
725
690
|
directives: GraphQL::Language::Nodes::Directive,
|
726
691
|
fields: GraphQL::Language::Nodes::InputValueDefinition,
|
727
692
|
})
|
728
|
-
|
729
|
-
:definitions
|
730
|
-
end
|
693
|
+
self.children_method_name = :definitions
|
731
694
|
end
|
732
695
|
|
733
696
|
class InputObjectTypeExtension < AbstractNode
|
@@ -736,9 +699,7 @@ module GraphQL
|
|
736
699
|
directives: GraphQL::Language::Nodes::Directive,
|
737
700
|
fields: GraphQL::Language::Nodes::InputValueDefinition,
|
738
701
|
})
|
739
|
-
|
740
|
-
:definitions
|
741
|
-
end
|
702
|
+
self.children_method_name = :definitions
|
742
703
|
end
|
743
704
|
end
|
744
705
|
end
|