graphql 2.5.23 → 2.6.1

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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graphql/analysis.rb +20 -13
  3. data/lib/graphql/execution/field_resolve_step.rb +631 -0
  4. data/lib/graphql/execution/finalize.rb +217 -0
  5. data/lib/graphql/execution/input_values.rb +261 -0
  6. data/lib/graphql/execution/interpreter/handles_raw_value.rb +6 -0
  7. data/lib/graphql/execution/load_argument_step.rb +64 -0
  8. data/lib/graphql/execution/next.rb +23 -5
  9. data/lib/graphql/execution/prepare_object_step.rb +128 -0
  10. data/lib/graphql/execution/runner.rb +410 -0
  11. data/lib/graphql/execution/selections_step.rb +91 -0
  12. data/lib/graphql/execution.rb +2 -2
  13. data/lib/graphql/execution_error.rb +1 -1
  14. data/lib/graphql/language/lexer.rb +11 -7
  15. data/lib/graphql/query/context.rb +6 -0
  16. data/lib/graphql/query/partial.rb +18 -3
  17. data/lib/graphql/query.rb +10 -1
  18. data/lib/graphql/runtime_error.rb +6 -0
  19. data/lib/graphql/schema/build_from_definition.rb +10 -0
  20. data/lib/graphql/schema/directive.rb +23 -9
  21. data/lib/graphql/schema/field/connection_extension.rb +2 -15
  22. data/lib/graphql/schema/field/scope_extension.rb +0 -4
  23. data/lib/graphql/schema/field.rb +20 -20
  24. data/lib/graphql/schema/field_extension.rb +11 -41
  25. data/lib/graphql/schema/interface.rb +26 -0
  26. data/lib/graphql/schema/list.rb +4 -0
  27. data/lib/graphql/schema/member/base_dsl_methods.rb +0 -10
  28. data/lib/graphql/schema/resolver.rb +32 -9
  29. data/lib/graphql/schema.rb +12 -10
  30. data/lib/graphql/subscriptions/default_subscription_resolve_extension.rb +25 -25
  31. data/lib/graphql/subscriptions.rb +15 -0
  32. data/lib/graphql/tracing/trace.rb +6 -0
  33. data/lib/graphql/unauthorized_error.rb +1 -1
  34. data/lib/graphql/version.rb +1 -1
  35. data/lib/graphql.rb +1 -3
  36. metadata +10 -7
  37. data/lib/graphql/execution/next/field_resolve_step.rb +0 -743
  38. data/lib/graphql/execution/next/load_argument_step.rb +0 -64
  39. data/lib/graphql/execution/next/prepare_object_step.rb +0 -129
  40. data/lib/graphql/execution/next/runner.rb +0 -411
  41. data/lib/graphql/execution/next/selections_step.rb +0 -37
@@ -98,6 +98,12 @@ module GraphQL
98
98
  yield
99
99
  end
100
100
 
101
+ def objects(type, object, context)
102
+ end
103
+
104
+ def object_loaded(argument_definition, object, context)
105
+ end
106
+
101
107
  # A call to `.authorized?` is starting
102
108
  # @param type [Class<GraphQL::Schema::Object>]
103
109
  # @param object [Object]
@@ -30,7 +30,7 @@ module GraphQL
30
30
 
31
31
  attr_accessor :path, :ast_nodes
32
32
 
33
- def assign_graphql_result(query, result_data, key)
33
+ def finalize_graphql_result(query, result_data, key)
34
34
  result_data[key] = nil
35
35
  end
36
36
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "2.5.23"
3
+ VERSION = "2.6.1"
4
4
  end
data/lib/graphql.rb CHANGED
@@ -21,9 +21,6 @@ module GraphQL
21
21
  class Error < StandardError
22
22
  end
23
23
 
24
- class RuntimeError < Error
25
- end
26
-
27
24
  # This error is raised when GraphQL-Ruby encounters a situation
28
25
  # that it *thought* would never happen. Please report this bug!
29
26
  class InvariantError < Error
@@ -122,6 +119,7 @@ This is probably a bug in GraphQL-Ruby, please report this error on GitHub: http
122
119
  autoload :ParseError, "graphql/parse_error"
123
120
  autoload :Backtrace, "graphql/backtrace"
124
121
 
122
+ autoload :RuntimeError, "graphql/runtime_error"
125
123
  autoload :UnauthorizedError, "graphql/unauthorized_error"
126
124
  autoload :UnauthorizedEnumValueError, "graphql/unauthorized_enum_value_error"
127
125
  autoload :UnauthorizedFieldError, "graphql/unauthorized_field_error"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.23
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-04-03 00:00:00.000000000 Z
10
+ date: 2026-04-27 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: base64
@@ -493,6 +493,9 @@ files:
493
493
  - lib/graphql/execution.rb
494
494
  - lib/graphql/execution/directive_checks.rb
495
495
  - lib/graphql/execution/errors.rb
496
+ - lib/graphql/execution/field_resolve_step.rb
497
+ - lib/graphql/execution/finalize.rb
498
+ - lib/graphql/execution/input_values.rb
496
499
  - lib/graphql/execution/interpreter.rb
497
500
  - lib/graphql/execution/interpreter/argument_value.rb
498
501
  - lib/graphql/execution/interpreter/arguments.rb
@@ -504,14 +507,13 @@ files:
504
507
  - lib/graphql/execution/interpreter/runtime/graphql_result.rb
505
508
  - lib/graphql/execution/lazy.rb
506
509
  - lib/graphql/execution/lazy/lazy_method_map.rb
510
+ - lib/graphql/execution/load_argument_step.rb
507
511
  - lib/graphql/execution/lookahead.rb
508
512
  - lib/graphql/execution/multiplex.rb
509
513
  - lib/graphql/execution/next.rb
510
- - lib/graphql/execution/next/field_resolve_step.rb
511
- - lib/graphql/execution/next/load_argument_step.rb
512
- - lib/graphql/execution/next/prepare_object_step.rb
513
- - lib/graphql/execution/next/runner.rb
514
- - lib/graphql/execution/next/selections_step.rb
514
+ - lib/graphql/execution/prepare_object_step.rb
515
+ - lib/graphql/execution/runner.rb
516
+ - lib/graphql/execution/selections_step.rb
515
517
  - lib/graphql/execution_error.rb
516
518
  - lib/graphql/integer_decoding_error.rb
517
519
  - lib/graphql/integer_encoding_error.rb
@@ -577,6 +579,7 @@ files:
577
579
  - lib/graphql/rubocop/graphql/default_required_true.rb
578
580
  - lib/graphql/rubocop/graphql/field_type_in_block.rb
579
581
  - lib/graphql/rubocop/graphql/root_types_in_block.rb
582
+ - lib/graphql/runtime_error.rb
580
583
  - lib/graphql/runtime_type_error.rb
581
584
  - lib/graphql/schema.rb
582
585
  - lib/graphql/schema/addition.rb