graphql 2.5.11 → 2.6.10
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.
- checksums.yaml +4 -4
- data/lib/generators/graphql/detailed_trace_generator.rb +77 -0
- data/lib/generators/graphql/field_extractor.rb +17 -1
- data/lib/generators/graphql/templates/create_graphql_detailed_traces.erb +10 -0
- data/lib/generators/graphql/templates/schema.erb +2 -1
- data/lib/graphql/analysis/query_complexity.rb +31 -15
- data/lib/graphql/analysis.rb +20 -13
- data/lib/graphql/backtrace/table.rb +10 -1
- data/lib/graphql/current.rb +7 -1
- data/lib/graphql/dashboard/application_controller.rb +45 -0
- data/lib/graphql/dashboard/landings_controller.rb +9 -0
- data/lib/graphql/dashboard/statics_controller.rb +31 -0
- data/lib/graphql/dashboard/subscriptions.rb +2 -1
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/_form.html.erb +1 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/edit.html.erb +2 -2
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/index.html.erb +1 -1
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/new.html.erb +1 -1
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/index_entries/index.html.erb +1 -1
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/operations/show.html.erb +1 -1
- data/lib/graphql/dashboard/views/graphql/dashboard/subscriptions/topics/show.html.erb +1 -1
- data/lib/graphql/dashboard/views/layouts/graphql/dashboard/application.html.erb +7 -7
- data/lib/graphql/dashboard.rb +14 -73
- data/lib/graphql/dataloader/async_dataloader.rb +336 -60
- data/lib/graphql/dataloader/null_dataloader.rb +48 -10
- data/lib/graphql/dataloader/source.rb +32 -19
- data/lib/graphql/dataloader.rb +107 -39
- data/lib/graphql/date_encoding_error.rb +1 -1
- data/lib/graphql/execution/directive_checks.rb +2 -0
- data/lib/graphql/execution/field_resolve_step.rb +804 -0
- data/lib/graphql/execution/finalize.rb +229 -0
- data/lib/graphql/execution/input_values.rb +333 -0
- data/lib/graphql/execution/interpreter/arguments_cache.rb +3 -0
- data/lib/graphql/execution/interpreter/handles_raw_value.rb +6 -0
- data/lib/graphql/execution/interpreter/resolve.rb +7 -13
- data/lib/graphql/execution/interpreter/runtime/graphql_result.rb +13 -0
- data/lib/graphql/execution/interpreter/runtime.rb +60 -40
- data/lib/graphql/execution/interpreter.rb +17 -23
- data/lib/graphql/execution/lazy.rb +1 -1
- data/lib/graphql/execution/load_argument_step.rb +102 -0
- data/lib/graphql/execution/multiplex.rb +1 -1
- data/lib/graphql/execution/next.rb +98 -0
- data/lib/graphql/execution/prepare_object_step.rb +151 -0
- data/lib/graphql/execution/resolve_type_step.rb +27 -0
- data/lib/graphql/execution/runner.rb +457 -0
- data/lib/graphql/execution/selections_step.rb +95 -0
- data/lib/graphql/execution.rb +15 -4
- data/lib/graphql/execution_error.rb +17 -12
- data/lib/graphql/float_decoding_error.rb +13 -0
- data/lib/graphql/float_encoding_error.rb +28 -0
- data/lib/graphql/introspection/directive_type.rb +7 -3
- data/lib/graphql/introspection/dynamic_fields.rb +5 -1
- data/lib/graphql/introspection/entry_points.rb +11 -3
- data/lib/graphql/introspection/enum_value_type.rb +5 -5
- data/lib/graphql/introspection/field_type.rb +13 -5
- data/lib/graphql/introspection/input_value_type.rb +21 -13
- data/lib/graphql/introspection/schema_type.rb +6 -2
- data/lib/graphql/introspection/type_type.rb +64 -28
- data/lib/graphql/invalid_null_error.rb +11 -5
- data/lib/graphql/language/block_string.rb +6 -11
- data/lib/graphql/language/cache.rb +84 -14
- data/lib/graphql/language/document_from_schema_definition.rb +2 -1
- data/lib/graphql/language/lexer.rb +27 -17
- data/lib/graphql/language/nodes.rb +2 -1
- data/lib/graphql/language/parser.rb +1 -1
- data/lib/graphql/language.rb +32 -17
- data/lib/graphql/pagination/connection.rb +2 -0
- data/lib/graphql/pagination/connections.rb +30 -0
- data/lib/graphql/pagination/relation_connection.rb +10 -1
- data/lib/graphql/query/context.rb +10 -3
- data/lib/graphql/query/null_context.rb +9 -3
- data/lib/graphql/query/partial.rb +18 -3
- data/lib/graphql/query/variable_validation_error.rb +16 -1
- data/lib/graphql/query/variables.rb +1 -1
- data/lib/graphql/query.rb +12 -3
- data/lib/graphql/railtie.rb +2 -1
- data/lib/graphql/runtime_error.rb +6 -0
- data/lib/graphql/schema/argument.rb +13 -1
- data/lib/graphql/schema/build_from_definition.rb +28 -1
- data/lib/graphql/schema/directive/feature.rb +4 -0
- data/lib/graphql/schema/directive/transform.rb +20 -0
- data/lib/graphql/schema/directive.rb +48 -13
- data/lib/graphql/schema/field/connection_extension.rb +4 -37
- data/lib/graphql/schema/field/scope_extension.rb +18 -13
- data/lib/graphql/schema/field.rb +79 -48
- data/lib/graphql/schema/field_extension.rb +11 -8
- data/lib/graphql/schema/has_single_input_argument.rb +24 -13
- data/lib/graphql/schema/input_object.rb +6 -2
- data/lib/graphql/schema/interface.rb +26 -0
- data/lib/graphql/schema/introspection_system.rb +6 -21
- data/lib/graphql/schema/list.rb +5 -1
- data/lib/graphql/schema/member/base_dsl_methods.rb +1 -11
- data/lib/graphql/schema/member/has_arguments.rb +43 -14
- data/lib/graphql/schema/member/has_authorization.rb +35 -0
- data/lib/graphql/schema/member/has_dataloader.rb +37 -0
- data/lib/graphql/schema/member/has_fields.rb +86 -5
- data/lib/graphql/schema/member.rb +5 -0
- data/lib/graphql/schema/non_null.rb +1 -1
- data/lib/graphql/schema/object.rb +1 -0
- data/lib/graphql/schema/printer.rb +1 -1
- data/lib/graphql/schema/ractor_shareable.rb +1 -0
- data/lib/graphql/schema/relay_classic_mutation.rb +16 -2
- data/lib/graphql/schema/resolver.rb +76 -1
- data/lib/graphql/schema/subscription.rb +53 -10
- data/lib/graphql/schema/timeout.rb +2 -2
- data/lib/graphql/schema/validator/allow_blank_validator.rb +3 -3
- data/lib/graphql/schema/validator/allow_null_validator.rb +3 -3
- data/lib/graphql/schema/validator/exclusion_validator.rb +2 -2
- data/lib/graphql/schema/validator/format_validator.rb +3 -3
- data/lib/graphql/schema/validator/inclusion_validator.rb +2 -2
- data/lib/graphql/schema/validator/length_validator.rb +6 -6
- data/lib/graphql/schema/validator/numericality_validator.rb +19 -19
- data/lib/graphql/schema/validator/required_validator.rb +38 -5
- data/lib/graphql/schema/validator.rb +9 -0
- data/lib/graphql/schema/visibility/profile.rb +74 -53
- data/lib/graphql/schema/visibility/visit.rb +1 -1
- data/lib/graphql/schema/visibility.rb +32 -24
- data/lib/graphql/schema/wrapper.rb +11 -1
- data/lib/graphql/schema.rb +93 -27
- data/lib/graphql/static_validation/base_visitor.rb +90 -66
- data/lib/graphql/static_validation/rules/argument_literals_are_compatible.rb +1 -1
- data/lib/graphql/static_validation/rules/argument_names_are_unique.rb +18 -6
- data/lib/graphql/static_validation/rules/arguments_are_defined.rb +5 -2
- data/lib/graphql/static_validation/rules/directives_are_defined.rb +5 -2
- data/lib/graphql/static_validation/rules/fields_are_defined_on_type.rb +4 -3
- data/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb +14 -4
- data/lib/graphql/static_validation/rules/fields_will_merge.rb +351 -248
- data/lib/graphql/static_validation/rules/fields_will_merge_error.rb +4 -4
- data/lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb +3 -3
- data/lib/graphql/static_validation/rules/fragment_types_exist.rb +10 -7
- data/lib/graphql/static_validation/rules/required_arguments_are_present.rb +27 -7
- data/lib/graphql/static_validation/rules/variables_are_input_types.rb +12 -9
- data/lib/graphql/static_validation/validation_context.rb +1 -1
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +1 -0
- data/lib/graphql/subscriptions/default_subscription_resolve_extension.rb +40 -10
- data/lib/graphql/subscriptions/serialize.rb +10 -4
- data/lib/graphql/subscriptions.rb +36 -1
- data/lib/graphql/testing/helpers.rb +12 -9
- data/lib/graphql/testing/mock_action_cable.rb +111 -0
- data/lib/graphql/testing.rb +1 -0
- data/lib/graphql/tracing/detailed_trace/active_record_backend.rb +74 -0
- data/lib/graphql/tracing/detailed_trace.rb +70 -7
- data/lib/graphql/tracing/perfetto_trace.rb +213 -81
- data/lib/graphql/tracing/sentry_trace.rb +3 -1
- data/lib/graphql/tracing/trace.rb +6 -0
- data/lib/graphql/types/float.rb +18 -4
- data/lib/graphql/types/relay/connection_behaviors.rb +8 -6
- data/lib/graphql/types/relay/edge_behaviors.rb +4 -3
- data/lib/graphql/types/relay/has_node_field.rb +13 -8
- data/lib/graphql/types/relay/has_nodes_field.rb +13 -8
- data/lib/graphql/types/relay/node_behaviors.rb +13 -2
- data/lib/graphql/unauthorized_error.rb +9 -1
- data/lib/graphql/version.rb +1 -1
- data/lib/graphql.rb +8 -2
- metadata +23 -59
|
@@ -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]
|
data/lib/graphql/types/float.rb
CHANGED
|
@@ -5,12 +5,26 @@ module GraphQL
|
|
|
5
5
|
class Float < GraphQL::Schema::Scalar
|
|
6
6
|
description "Represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point)."
|
|
7
7
|
|
|
8
|
-
def self.coerce_input(value,
|
|
9
|
-
value.is_a?(Numeric)
|
|
8
|
+
def self.coerce_input(value, ctx)
|
|
9
|
+
return if !value.is_a?(Numeric)
|
|
10
|
+
|
|
11
|
+
value = value.to_f
|
|
12
|
+
if value.finite?
|
|
13
|
+
value
|
|
14
|
+
else
|
|
15
|
+
err = GraphQL::FloatDecodingError.new(value)
|
|
16
|
+
ctx.schema.type_error(err, ctx)
|
|
17
|
+
end
|
|
10
18
|
end
|
|
11
19
|
|
|
12
|
-
def self.coerce_result(value,
|
|
13
|
-
value.to_f
|
|
20
|
+
def self.coerce_result(value, ctx)
|
|
21
|
+
value = value.to_f
|
|
22
|
+
if value.finite?
|
|
23
|
+
value
|
|
24
|
+
else
|
|
25
|
+
err = GraphQL::FloatEncodingError.new(value, context: ctx)
|
|
26
|
+
ctx.schema.type_error(err, ctx)
|
|
27
|
+
end
|
|
14
28
|
end
|
|
15
29
|
|
|
16
30
|
default_scalar true
|
|
@@ -196,18 +196,20 @@ module GraphQL
|
|
|
196
196
|
def edges
|
|
197
197
|
# Assume that whatever authorization needed to happen
|
|
198
198
|
# already happened at the connection level.
|
|
199
|
-
current_runtime_state = Fiber[:__graphql_runtime_info]
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
if (current_runtime_state = Fiber[:__graphql_runtime_info])
|
|
200
|
+
query_runtime_state = current_runtime_state[context.query]
|
|
201
|
+
query_runtime_state.was_authorized_by_scope_items = @object.was_authorized_by_scope_items?
|
|
202
|
+
end
|
|
202
203
|
@object.edges
|
|
203
204
|
end
|
|
204
205
|
|
|
205
206
|
def nodes
|
|
206
207
|
# Assume that whatever authorization needed to happen
|
|
207
208
|
# already happened at the connection level.
|
|
208
|
-
current_runtime_state = Fiber[:__graphql_runtime_info]
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
if (current_runtime_state = Fiber[:__graphql_runtime_info])
|
|
210
|
+
query_runtime_state = current_runtime_state[context.query]
|
|
211
|
+
query_runtime_state.was_authorized_by_scope_items = @object.was_authorized_by_scope_items?
|
|
212
|
+
end
|
|
211
213
|
@object.nodes
|
|
212
214
|
end
|
|
213
215
|
end
|
|
@@ -14,9 +14,10 @@ module GraphQL
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def node
|
|
17
|
-
current_runtime_state = Fiber[:__graphql_runtime_info]
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
if (current_runtime_state = Fiber[:__graphql_runtime_info])
|
|
18
|
+
query_runtime_state = current_runtime_state[context.query]
|
|
19
|
+
query_runtime_state.was_authorized_by_scope_items = @object.was_authorized_by_scope_items?
|
|
20
|
+
end
|
|
20
21
|
@object.node
|
|
21
22
|
end
|
|
22
23
|
|
|
@@ -7,6 +7,17 @@ module GraphQL
|
|
|
7
7
|
module HasNodeField
|
|
8
8
|
def self.included(child_class)
|
|
9
9
|
child_class.field(**field_options, &field_block)
|
|
10
|
+
child_class.extend(ExecutionMethods)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
module ExecutionMethods
|
|
14
|
+
def get_relay_node(context, id:)
|
|
15
|
+
context.schema.object_from_id(id, context)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def get_relay_node(id:)
|
|
20
|
+
self.class.get_relay_node(context, id: id)
|
|
10
21
|
end
|
|
11
22
|
|
|
12
23
|
class << self
|
|
@@ -17,6 +28,8 @@ module GraphQL
|
|
|
17
28
|
null: true,
|
|
18
29
|
description: "Fetches an object given its ID.",
|
|
19
30
|
relay_node_field: true,
|
|
31
|
+
resolver_method: :get_relay_node,
|
|
32
|
+
resolve_static: :get_relay_node,
|
|
20
33
|
}
|
|
21
34
|
end
|
|
22
35
|
|
|
@@ -24,14 +37,6 @@ module GraphQL
|
|
|
24
37
|
Proc.new {
|
|
25
38
|
argument :id, "ID!",
|
|
26
39
|
description: "ID of the object."
|
|
27
|
-
|
|
28
|
-
def resolve(obj, args, ctx)
|
|
29
|
-
ctx.schema.object_from_id(args[:id], ctx)
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
def resolve_field(obj, args, ctx)
|
|
33
|
-
resolve(obj, args, ctx)
|
|
34
|
-
end
|
|
35
40
|
}
|
|
36
41
|
end
|
|
37
42
|
end
|
|
@@ -7,6 +7,17 @@ module GraphQL
|
|
|
7
7
|
module HasNodesField
|
|
8
8
|
def self.included(child_class)
|
|
9
9
|
child_class.field(**field_options, &field_block)
|
|
10
|
+
child_class.extend(ExecutionMethods)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
module ExecutionMethods
|
|
14
|
+
def get_relay_nodes(context, ids:)
|
|
15
|
+
ids.map { |id| context.schema.object_from_id(id, context) }
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def get_relay_nodes(ids:)
|
|
20
|
+
self.class.get_relay_nodes(context, ids: ids)
|
|
10
21
|
end
|
|
11
22
|
|
|
12
23
|
class << self
|
|
@@ -17,6 +28,8 @@ module GraphQL
|
|
|
17
28
|
null: false,
|
|
18
29
|
description: "Fetches a list of objects given a list of IDs.",
|
|
19
30
|
relay_nodes_field: true,
|
|
31
|
+
resolver_method: :get_relay_nodes,
|
|
32
|
+
resolve_static: :get_relay_nodes
|
|
20
33
|
}
|
|
21
34
|
end
|
|
22
35
|
|
|
@@ -24,14 +37,6 @@ module GraphQL
|
|
|
24
37
|
Proc.new {
|
|
25
38
|
argument :ids, "[ID!]!",
|
|
26
39
|
description: "IDs of the objects."
|
|
27
|
-
|
|
28
|
-
def resolve(obj, args, ctx)
|
|
29
|
-
args[:ids].map { |id| ctx.schema.object_from_id(id, ctx) }
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
def resolve_field(obj, args, ctx)
|
|
33
|
-
resolve(obj, args, ctx)
|
|
34
|
-
end
|
|
35
40
|
}
|
|
36
41
|
end
|
|
37
42
|
end
|
|
@@ -6,12 +6,13 @@ module GraphQL
|
|
|
6
6
|
module NodeBehaviors
|
|
7
7
|
def self.included(child_module)
|
|
8
8
|
child_module.extend(ClassMethods)
|
|
9
|
+
child_module.extend(ExecutionMethods)
|
|
9
10
|
child_module.description("An object with an ID.")
|
|
10
|
-
child_module.field(:id, ID, null: false, description: "ID of the object.", resolver_method: :default_global_id)
|
|
11
|
+
child_module.field(:id, ID, null: false, description: "ID of the object.", resolver_method: :default_global_id, resolve_each: :default_global_id)
|
|
11
12
|
end
|
|
12
13
|
|
|
13
14
|
def default_global_id
|
|
14
|
-
|
|
15
|
+
self.class.default_global_id(object, context)
|
|
15
16
|
end
|
|
16
17
|
|
|
17
18
|
module ClassMethods
|
|
@@ -19,6 +20,16 @@ module GraphQL
|
|
|
19
20
|
true
|
|
20
21
|
end
|
|
21
22
|
end
|
|
23
|
+
|
|
24
|
+
module ExecutionMethods
|
|
25
|
+
def default_global_id(object, context)
|
|
26
|
+
context.schema.id_from_object(object, self, context)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def included(child_class)
|
|
30
|
+
child_class.extend(ExecutionMethods)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
22
33
|
end
|
|
23
34
|
end
|
|
24
35
|
end
|
|
@@ -4,7 +4,7 @@ module GraphQL
|
|
|
4
4
|
# It's passed to {Schema.unauthorized_object}.
|
|
5
5
|
#
|
|
6
6
|
# Alternatively, custom code in `authorized?` may raise this error. It will be routed the same way.
|
|
7
|
-
class UnauthorizedError < GraphQL::
|
|
7
|
+
class UnauthorizedError < GraphQL::RuntimeError
|
|
8
8
|
# @return [Object] the application object that failed the authorization check
|
|
9
9
|
attr_reader :object
|
|
10
10
|
|
|
@@ -19,11 +19,19 @@ module GraphQL
|
|
|
19
19
|
raise ArgumentError, "#{self.class.name} requires either a message or keywords"
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
@path = nil
|
|
22
23
|
@object = object
|
|
23
24
|
@type = type
|
|
24
25
|
@context = context
|
|
26
|
+
@ast_nodes = nil
|
|
25
27
|
message ||= "An instance of #{object.class} failed #{type.graphql_name}'s authorization check"
|
|
26
28
|
super(message)
|
|
27
29
|
end
|
|
30
|
+
|
|
31
|
+
attr_accessor :path, :ast_nodes
|
|
32
|
+
|
|
33
|
+
def finalize_graphql_result(query, result_data, key)
|
|
34
|
+
result_data[key] = nil
|
|
35
|
+
end
|
|
28
36
|
end
|
|
29
37
|
end
|
data/lib/graphql/version.rb
CHANGED
data/lib/graphql.rb
CHANGED
|
@@ -4,7 +4,7 @@ require "json"
|
|
|
4
4
|
require "set"
|
|
5
5
|
require "singleton"
|
|
6
6
|
require "forwardable"
|
|
7
|
-
require "fiber/storage"
|
|
7
|
+
require "fiber/storage" if RUBY_VERSION < "3.2.0"
|
|
8
8
|
require "graphql/autoload"
|
|
9
9
|
|
|
10
10
|
module GraphQL
|
|
@@ -93,6 +93,8 @@ This is probably a bug in GraphQL-Ruby, please report this error on GitHub: http
|
|
|
93
93
|
autoload :AnalysisError, "graphql/analysis_error"
|
|
94
94
|
autoload :CoercionError, "graphql/coercion_error"
|
|
95
95
|
autoload :InvalidNameError, "graphql/invalid_name_error"
|
|
96
|
+
autoload :FloatDecodingError, "graphql/float_decoding_error"
|
|
97
|
+
autoload :FloatEncodingError, "graphql/float_encoding_error"
|
|
96
98
|
autoload :IntegerDecodingError, "graphql/integer_decoding_error"
|
|
97
99
|
autoload :IntegerEncodingError, "graphql/integer_encoding_error"
|
|
98
100
|
autoload :StringEncodingError, "graphql/string_encoding_error"
|
|
@@ -119,6 +121,7 @@ This is probably a bug in GraphQL-Ruby, please report this error on GitHub: http
|
|
|
119
121
|
autoload :ParseError, "graphql/parse_error"
|
|
120
122
|
autoload :Backtrace, "graphql/backtrace"
|
|
121
123
|
|
|
124
|
+
autoload :RuntimeError, "graphql/runtime_error"
|
|
122
125
|
autoload :UnauthorizedError, "graphql/unauthorized_error"
|
|
123
126
|
autoload :UnauthorizedEnumValueError, "graphql/unauthorized_enum_value_error"
|
|
124
127
|
autoload :UnauthorizedFieldError, "graphql/unauthorized_field_error"
|
|
@@ -126,7 +129,10 @@ This is probably a bug in GraphQL-Ruby, please report this error on GitHub: http
|
|
|
126
129
|
autoload :Testing, "graphql/testing"
|
|
127
130
|
autoload :Current, "graphql/current"
|
|
128
131
|
if defined?(::Rails::Engine)
|
|
129
|
-
|
|
132
|
+
# This needs to be defined before Rails runs `add_routing_paths`,
|
|
133
|
+
# otherwise GraphQL::Dashboard's routes won't have been gathered for loading
|
|
134
|
+
# when that initializer runs.
|
|
135
|
+
require 'graphql/dashboard'
|
|
130
136
|
end
|
|
131
137
|
end
|
|
132
138
|
|
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.
|
|
4
|
+
version: 2.6.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Mosolgo
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-08-27 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|
|
@@ -261,34 +261,6 @@ dependencies:
|
|
|
261
261
|
- - ">="
|
|
262
262
|
- !ruby/object:Gem::Version
|
|
263
263
|
version: '0'
|
|
264
|
-
- !ruby/object:Gem::Dependency
|
|
265
|
-
name: jekyll
|
|
266
|
-
requirement: !ruby/object:Gem::Requirement
|
|
267
|
-
requirements:
|
|
268
|
-
- - ">="
|
|
269
|
-
- !ruby/object:Gem::Version
|
|
270
|
-
version: '0'
|
|
271
|
-
type: :development
|
|
272
|
-
prerelease: false
|
|
273
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
274
|
-
requirements:
|
|
275
|
-
- - ">="
|
|
276
|
-
- !ruby/object:Gem::Version
|
|
277
|
-
version: '0'
|
|
278
|
-
- !ruby/object:Gem::Dependency
|
|
279
|
-
name: jekyll-sass-converter
|
|
280
|
-
requirement: !ruby/object:Gem::Requirement
|
|
281
|
-
requirements:
|
|
282
|
-
- - "~>"
|
|
283
|
-
- !ruby/object:Gem::Version
|
|
284
|
-
version: '2.2'
|
|
285
|
-
type: :development
|
|
286
|
-
prerelease: false
|
|
287
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
288
|
-
requirements:
|
|
289
|
-
- - "~>"
|
|
290
|
-
- !ruby/object:Gem::Version
|
|
291
|
-
version: '2.2'
|
|
292
264
|
- !ruby/object:Gem::Dependency
|
|
293
265
|
name: yard
|
|
294
266
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -303,34 +275,6 @@ dependencies:
|
|
|
303
275
|
- - ">="
|
|
304
276
|
- !ruby/object:Gem::Version
|
|
305
277
|
version: '0'
|
|
306
|
-
- !ruby/object:Gem::Dependency
|
|
307
|
-
name: jekyll-algolia
|
|
308
|
-
requirement: !ruby/object:Gem::Requirement
|
|
309
|
-
requirements:
|
|
310
|
-
- - ">="
|
|
311
|
-
- !ruby/object:Gem::Version
|
|
312
|
-
version: '0'
|
|
313
|
-
type: :development
|
|
314
|
-
prerelease: false
|
|
315
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
316
|
-
requirements:
|
|
317
|
-
- - ">="
|
|
318
|
-
- !ruby/object:Gem::Version
|
|
319
|
-
version: '0'
|
|
320
|
-
- !ruby/object:Gem::Dependency
|
|
321
|
-
name: jekyll-redirect-from
|
|
322
|
-
requirement: !ruby/object:Gem::Requirement
|
|
323
|
-
requirements:
|
|
324
|
-
- - ">="
|
|
325
|
-
- !ruby/object:Gem::Version
|
|
326
|
-
version: '0'
|
|
327
|
-
type: :development
|
|
328
|
-
prerelease: false
|
|
329
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
330
|
-
requirements:
|
|
331
|
-
- - ">="
|
|
332
|
-
- !ruby/object:Gem::Version
|
|
333
|
-
version: '0'
|
|
334
278
|
- !ruby/object:Gem::Dependency
|
|
335
279
|
name: m
|
|
336
280
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -383,6 +327,7 @@ files:
|
|
|
383
327
|
- ".yardopts"
|
|
384
328
|
- MIT-LICENSE
|
|
385
329
|
- lib/generators/graphql/core.rb
|
|
330
|
+
- lib/generators/graphql/detailed_trace_generator.rb
|
|
386
331
|
- lib/generators/graphql/enum_generator.rb
|
|
387
332
|
- lib/generators/graphql/field_extractor.rb
|
|
388
333
|
- lib/generators/graphql/input_generator.rb
|
|
@@ -412,6 +357,7 @@ files:
|
|
|
412
357
|
- lib/generators/graphql/templates/base_resolver.erb
|
|
413
358
|
- lib/generators/graphql/templates/base_scalar.erb
|
|
414
359
|
- lib/generators/graphql/templates/base_union.erb
|
|
360
|
+
- lib/generators/graphql/templates/create_graphql_detailed_traces.erb
|
|
415
361
|
- lib/generators/graphql/templates/enum.erb
|
|
416
362
|
- lib/generators/graphql/templates/graphql_controller.erb
|
|
417
363
|
- lib/generators/graphql/templates/input.erb
|
|
@@ -446,8 +392,10 @@ files:
|
|
|
446
392
|
- lib/graphql/coercion_error.rb
|
|
447
393
|
- lib/graphql/current.rb
|
|
448
394
|
- lib/graphql/dashboard.rb
|
|
395
|
+
- lib/graphql/dashboard/application_controller.rb
|
|
449
396
|
- lib/graphql/dashboard/detailed_traces.rb
|
|
450
397
|
- lib/graphql/dashboard/installable.rb
|
|
398
|
+
- lib/graphql/dashboard/landings_controller.rb
|
|
451
399
|
- lib/graphql/dashboard/limiters.rb
|
|
452
400
|
- lib/graphql/dashboard/operation_store.rb
|
|
453
401
|
- lib/graphql/dashboard/statics/bootstrap-5.3.3.min.css
|
|
@@ -457,6 +405,7 @@ files:
|
|
|
457
405
|
- lib/graphql/dashboard/statics/dashboard.js
|
|
458
406
|
- lib/graphql/dashboard/statics/header-icon.png
|
|
459
407
|
- lib/graphql/dashboard/statics/icon.png
|
|
408
|
+
- lib/graphql/dashboard/statics_controller.rb
|
|
460
409
|
- lib/graphql/dashboard/subscriptions.rb
|
|
461
410
|
- lib/graphql/dashboard/views/graphql/dashboard/detailed_traces/traces/index.html.erb
|
|
462
411
|
- lib/graphql/dashboard/views/graphql/dashboard/landings/show.html.erb
|
|
@@ -488,6 +437,9 @@ files:
|
|
|
488
437
|
- lib/graphql/execution.rb
|
|
489
438
|
- lib/graphql/execution/directive_checks.rb
|
|
490
439
|
- lib/graphql/execution/errors.rb
|
|
440
|
+
- lib/graphql/execution/field_resolve_step.rb
|
|
441
|
+
- lib/graphql/execution/finalize.rb
|
|
442
|
+
- lib/graphql/execution/input_values.rb
|
|
491
443
|
- lib/graphql/execution/interpreter.rb
|
|
492
444
|
- lib/graphql/execution/interpreter/argument_value.rb
|
|
493
445
|
- lib/graphql/execution/interpreter/arguments.rb
|
|
@@ -499,9 +451,17 @@ files:
|
|
|
499
451
|
- lib/graphql/execution/interpreter/runtime/graphql_result.rb
|
|
500
452
|
- lib/graphql/execution/lazy.rb
|
|
501
453
|
- lib/graphql/execution/lazy/lazy_method_map.rb
|
|
454
|
+
- lib/graphql/execution/load_argument_step.rb
|
|
502
455
|
- lib/graphql/execution/lookahead.rb
|
|
503
456
|
- lib/graphql/execution/multiplex.rb
|
|
457
|
+
- lib/graphql/execution/next.rb
|
|
458
|
+
- lib/graphql/execution/prepare_object_step.rb
|
|
459
|
+
- lib/graphql/execution/resolve_type_step.rb
|
|
460
|
+
- lib/graphql/execution/runner.rb
|
|
461
|
+
- lib/graphql/execution/selections_step.rb
|
|
504
462
|
- lib/graphql/execution_error.rb
|
|
463
|
+
- lib/graphql/float_decoding_error.rb
|
|
464
|
+
- lib/graphql/float_encoding_error.rb
|
|
505
465
|
- lib/graphql/integer_decoding_error.rb
|
|
506
466
|
- lib/graphql/integer_encoding_error.rb
|
|
507
467
|
- lib/graphql/introspection.rb
|
|
@@ -566,6 +526,7 @@ files:
|
|
|
566
526
|
- lib/graphql/rubocop/graphql/default_required_true.rb
|
|
567
527
|
- lib/graphql/rubocop/graphql/field_type_in_block.rb
|
|
568
528
|
- lib/graphql/rubocop/graphql/root_types_in_block.rb
|
|
529
|
+
- lib/graphql/runtime_error.rb
|
|
569
530
|
- lib/graphql/runtime_type_error.rb
|
|
570
531
|
- lib/graphql/schema.rb
|
|
571
532
|
- lib/graphql/schema/addition.rb
|
|
@@ -606,6 +567,7 @@ files:
|
|
|
606
567
|
- lib/graphql/schema/member/graphql_type_names.rb
|
|
607
568
|
- lib/graphql/schema/member/has_arguments.rb
|
|
608
569
|
- lib/graphql/schema/member/has_ast_node.rb
|
|
570
|
+
- lib/graphql/schema/member/has_authorization.rb
|
|
609
571
|
- lib/graphql/schema/member/has_dataloader.rb
|
|
610
572
|
- lib/graphql/schema/member/has_deprecation_reason.rb
|
|
611
573
|
- lib/graphql/schema/member/has_directives.rb
|
|
@@ -729,6 +691,7 @@ files:
|
|
|
729
691
|
- lib/graphql/subscriptions/serialize.rb
|
|
730
692
|
- lib/graphql/testing.rb
|
|
731
693
|
- lib/graphql/testing/helpers.rb
|
|
694
|
+
- lib/graphql/testing/mock_action_cable.rb
|
|
732
695
|
- lib/graphql/tracing.rb
|
|
733
696
|
- lib/graphql/tracing/active_support_notifications_trace.rb
|
|
734
697
|
- lib/graphql/tracing/active_support_notifications_tracing.rb
|
|
@@ -740,6 +703,7 @@ files:
|
|
|
740
703
|
- lib/graphql/tracing/data_dog_trace.rb
|
|
741
704
|
- lib/graphql/tracing/data_dog_tracing.rb
|
|
742
705
|
- lib/graphql/tracing/detailed_trace.rb
|
|
706
|
+
- lib/graphql/tracing/detailed_trace/active_record_backend.rb
|
|
743
707
|
- lib/graphql/tracing/detailed_trace/memory_backend.rb
|
|
744
708
|
- lib/graphql/tracing/detailed_trace/redis_backend.rb
|
|
745
709
|
- lib/graphql/tracing/legacy_hooks_trace.rb
|
|
@@ -817,7 +781,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
817
781
|
- !ruby/object:Gem::Version
|
|
818
782
|
version: '0'
|
|
819
783
|
requirements: []
|
|
820
|
-
rubygems_version:
|
|
784
|
+
rubygems_version: 4.0.6
|
|
821
785
|
specification_version: 4
|
|
822
786
|
summary: A GraphQL language and runtime for Ruby
|
|
823
787
|
test_files: []
|