graphql 2.0.32 → 2.5.22
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/install/mutation_root_generator.rb +2 -2
- data/lib/generators/graphql/install/templates/base_mutation.erb +2 -0
- data/lib/generators/graphql/install/templates/mutation_type.erb +2 -0
- data/lib/generators/graphql/install_generator.rb +49 -0
- data/lib/generators/graphql/orm_mutations_base.rb +1 -1
- data/lib/generators/graphql/templates/base_argument.erb +2 -0
- data/lib/generators/graphql/templates/base_connection.erb +2 -0
- data/lib/generators/graphql/templates/base_edge.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_object.erb +2 -0
- data/lib/generators/graphql/templates/base_resolver.erb +8 -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/create_graphql_detailed_traces.erb +10 -0
- data/lib/generators/graphql/templates/graphql_controller.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/node_type.erb +2 -0
- data/lib/generators/graphql/templates/query_type.erb +2 -0
- data/lib/generators/graphql/templates/schema.erb +5 -0
- data/lib/generators/graphql/type_generator.rb +1 -1
- data/lib/graphql/analysis/analyzer.rb +90 -0
- data/lib/graphql/analysis/field_usage.rb +82 -0
- data/lib/graphql/analysis/max_query_complexity.rb +20 -0
- data/lib/graphql/analysis/max_query_depth.rb +20 -0
- data/lib/graphql/analysis/query_complexity.rb +263 -0
- data/lib/graphql/analysis/query_depth.rb +58 -0
- data/lib/graphql/analysis/visitor.rb +280 -0
- data/lib/graphql/analysis.rb +95 -1
- data/lib/graphql/autoload.rb +38 -0
- data/lib/graphql/backtrace/table.rb +118 -55
- data/lib/graphql/backtrace.rb +1 -19
- data/lib/graphql/coercion_error.rb +1 -9
- data/lib/graphql/current.rb +57 -0
- data/lib/graphql/dashboard/application_controller.rb +41 -0
- data/lib/graphql/dashboard/detailed_traces.rb +47 -0
- data/lib/graphql/dashboard/installable.rb +22 -0
- data/lib/graphql/dashboard/landings_controller.rb +9 -0
- data/lib/graphql/dashboard/limiters.rb +93 -0
- data/lib/graphql/dashboard/operation_store.rb +199 -0
- data/lib/graphql/dashboard/statics/bootstrap-5.3.3.min.css +6 -0
- data/lib/graphql/dashboard/statics/bootstrap-5.3.3.min.js +7 -0
- data/lib/graphql/dashboard/statics/charts.min.css +1 -0
- data/lib/graphql/dashboard/statics/dashboard.css +30 -0
- data/lib/graphql/dashboard/statics/dashboard.js +143 -0
- data/lib/graphql/dashboard/statics/header-icon.png +0 -0
- data/lib/graphql/dashboard/statics/icon.png +0 -0
- data/lib/graphql/dashboard/statics_controller.rb +31 -0
- data/lib/graphql/dashboard/subscriptions.rb +97 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/detailed_traces/traces/index.html.erb +45 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/landings/show.html.erb +18 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/limiters/limiters/show.html.erb +62 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/not_installed.html.erb +18 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/_form.html.erb +24 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/edit.html.erb +21 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/index.html.erb +69 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/clients/new.html.erb +7 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/index_entries/index.html.erb +39 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/index_entries/show.html.erb +32 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/operations/index.html.erb +81 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/operation_store/operations/show.html.erb +71 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/subscriptions/subscriptions/show.html.erb +41 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/subscriptions/topics/index.html.erb +55 -0
- data/lib/graphql/dashboard/views/graphql/dashboard/subscriptions/topics/show.html.erb +40 -0
- data/lib/graphql/dashboard/views/layouts/graphql/dashboard/application.html.erb +108 -0
- data/lib/graphql/dashboard.rb +96 -0
- data/lib/graphql/dataloader/active_record_association_source.rb +84 -0
- data/lib/graphql/dataloader/active_record_source.rb +47 -0
- data/lib/graphql/dataloader/async_dataloader.rb +112 -0
- data/lib/graphql/dataloader/null_dataloader.rb +55 -10
- data/lib/graphql/dataloader/request.rb +5 -0
- data/lib/graphql/dataloader/source.rb +35 -12
- data/lib/graphql/dataloader.rb +224 -149
- data/lib/graphql/date_encoding_error.rb +1 -1
- data/lib/graphql/dig.rb +2 -1
- data/lib/graphql/duration_encoding_error.rb +16 -0
- data/lib/graphql/execution/interpreter/argument_value.rb +5 -1
- data/lib/graphql/execution/interpreter/arguments_cache.rb +5 -10
- data/lib/graphql/execution/interpreter/resolve.rb +23 -25
- data/lib/graphql/execution/interpreter/runtime/graphql_result.rb +228 -0
- data/lib/graphql/execution/interpreter/runtime.rb +363 -434
- data/lib/graphql/execution/interpreter.rb +91 -164
- data/lib/graphql/execution/lookahead.rb +105 -31
- data/lib/graphql/execution/multiplex.rb +7 -6
- data/lib/graphql/execution/next/field_resolve_step.rb +711 -0
- data/lib/graphql/execution/next/load_argument_step.rb +60 -0
- data/lib/graphql/execution/next/prepare_object_step.rb +129 -0
- data/lib/graphql/execution/next/runner.rb +389 -0
- data/lib/graphql/execution/next/selections_step.rb +37 -0
- data/lib/graphql/execution/next.rb +70 -0
- data/lib/graphql/execution.rb +1 -0
- data/lib/graphql/execution_error.rb +13 -10
- data/lib/graphql/introspection/directive_location_enum.rb +1 -1
- 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 +20 -6
- 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 +8 -11
- data/lib/graphql/introspection/type_type.rb +64 -28
- data/lib/graphql/invalid_name_error.rb +1 -1
- data/lib/graphql/invalid_null_error.rb +26 -17
- data/lib/graphql/language/block_string.rb +34 -18
- data/lib/graphql/language/cache.rb +13 -0
- data/lib/graphql/language/comment.rb +18 -0
- data/lib/graphql/language/definition_slice.rb +1 -1
- data/lib/graphql/language/document_from_schema_definition.rb +90 -61
- data/lib/graphql/language/lexer.rb +319 -193
- data/lib/graphql/language/nodes.rb +136 -77
- data/lib/graphql/language/parser.rb +807 -1985
- data/lib/graphql/language/printer.rb +324 -151
- data/lib/graphql/language/sanitized_printer.rb +21 -23
- data/lib/graphql/language/static_visitor.rb +171 -0
- data/lib/graphql/language/visitor.rb +23 -83
- data/lib/graphql/language.rb +71 -1
- data/lib/graphql/load_application_object_failed_error.rb +5 -1
- data/lib/graphql/pagination/array_connection.rb +6 -6
- data/lib/graphql/pagination/connection.rb +30 -1
- data/lib/graphql/pagination/connections.rb +32 -0
- data/lib/graphql/pagination/mongoid_relation_connection.rb +1 -2
- data/lib/graphql/query/context/scoped_context.rb +101 -0
- data/lib/graphql/query/context.rb +82 -144
- data/lib/graphql/query/null_context.rb +15 -18
- data/lib/graphql/query/partial.rb +179 -0
- data/lib/graphql/query/validation_pipeline.rb +4 -4
- data/lib/graphql/query/variable_validation_error.rb +1 -1
- data/lib/graphql/query/variables.rb +3 -3
- data/lib/graphql/query.rb +126 -81
- data/lib/graphql/railtie.rb +16 -6
- data/lib/graphql/rake_task.rb +3 -12
- data/lib/graphql/rubocop/graphql/base_cop.rb +1 -1
- data/lib/graphql/rubocop/graphql/field_type_in_block.rb +144 -0
- data/lib/graphql/rubocop/graphql/root_types_in_block.rb +38 -0
- data/lib/graphql/rubocop.rb +2 -0
- data/lib/graphql/schema/addition.rb +26 -13
- data/lib/graphql/schema/always_visible.rb +7 -2
- data/lib/graphql/schema/argument.rb +75 -9
- data/lib/graphql/schema/base_64_encoder.rb +3 -5
- data/lib/graphql/schema/build_from_definition.rb +123 -60
- data/lib/graphql/schema/directive/flagged.rb +4 -2
- data/lib/graphql/schema/directive/one_of.rb +12 -0
- data/lib/graphql/schema/directive/specified_by.rb +14 -0
- data/lib/graphql/schema/directive.rb +54 -2
- data/lib/graphql/schema/enum.rb +110 -27
- data/lib/graphql/schema/enum_value.rb +10 -2
- data/lib/graphql/schema/field/connection_extension.rb +15 -49
- data/lib/graphql/schema/field/scope_extension.rb +23 -7
- data/lib/graphql/schema/field.rb +245 -118
- data/lib/graphql/schema/field_extension.rb +34 -1
- data/lib/graphql/schema/has_single_input_argument.rb +160 -0
- data/lib/graphql/schema/input_object.rb +116 -60
- data/lib/graphql/schema/interface.rb +34 -16
- data/lib/graphql/schema/introspection_system.rb +8 -17
- data/lib/graphql/schema/late_bound_type.rb +4 -0
- data/lib/graphql/schema/list.rb +3 -3
- data/lib/graphql/schema/loader.rb +3 -4
- data/lib/graphql/schema/member/base_dsl_methods.rb +18 -2
- data/lib/graphql/schema/member/has_arguments.rb +132 -100
- data/lib/graphql/schema/member/has_authorization.rb +35 -0
- data/lib/graphql/schema/member/has_dataloader.rb +99 -0
- data/lib/graphql/schema/member/has_deprecation_reason.rb +15 -0
- data/lib/graphql/schema/member/has_directives.rb +4 -4
- data/lib/graphql/schema/member/has_fields.rb +115 -15
- data/lib/graphql/schema/member/has_interfaces.rb +26 -12
- data/lib/graphql/schema/member/has_unresolved_type_error.rb +5 -1
- data/lib/graphql/schema/member/has_validators.rb +1 -1
- data/lib/graphql/schema/member/relay_shortcuts.rb +1 -1
- data/lib/graphql/schema/member/scoped.rb +19 -0
- data/lib/graphql/schema/member/type_system_helpers.rb +17 -4
- data/lib/graphql/schema/member/validates_input.rb +3 -3
- data/lib/graphql/schema/member.rb +6 -0
- data/lib/graphql/schema/mutation.rb +7 -0
- data/lib/graphql/schema/object.rb +34 -8
- data/lib/graphql/schema/printer.rb +9 -7
- data/lib/graphql/schema/ractor_shareable.rb +79 -0
- data/lib/graphql/schema/relay_classic_mutation.rb +6 -129
- data/lib/graphql/schema/resolver.rb +90 -32
- data/lib/graphql/schema/scalar.rb +4 -9
- data/lib/graphql/schema/subscription.rb +63 -10
- data/lib/graphql/schema/timeout.rb +19 -2
- data/lib/graphql/schema/type_expression.rb +2 -2
- data/lib/graphql/schema/union.rb +2 -2
- data/lib/graphql/schema/unique_within_type.rb +1 -1
- data/lib/graphql/schema/validator/all_validator.rb +62 -0
- data/lib/graphql/schema/validator/required_validator.rb +92 -11
- data/lib/graphql/schema/validator.rb +3 -1
- data/lib/graphql/schema/visibility/migration.rb +188 -0
- data/lib/graphql/schema/visibility/profile.rb +445 -0
- data/lib/graphql/schema/visibility/visit.rb +190 -0
- data/lib/graphql/schema/visibility.rb +311 -0
- data/lib/graphql/schema/warden.rb +275 -103
- data/lib/graphql/schema.rb +950 -210
- data/lib/graphql/static_validation/all_rules.rb +3 -3
- data/lib/graphql/static_validation/base_visitor.rb +7 -6
- data/lib/graphql/static_validation/literal_validator.rb +6 -7
- data/lib/graphql/static_validation/rules/argument_literals_are_compatible.rb +1 -1
- data/lib/graphql/static_validation/rules/argument_names_are_unique.rb +1 -1
- data/lib/graphql/static_validation/rules/arguments_are_defined.rb +3 -2
- data/lib/graphql/static_validation/rules/directives_are_defined.rb +3 -3
- data/lib/graphql/static_validation/rules/directives_are_in_valid_locations.rb +2 -0
- data/lib/graphql/static_validation/rules/fields_are_defined_on_type.rb +12 -2
- data/lib/graphql/static_validation/rules/fields_have_appropriate_selections.rb +47 -13
- data/lib/graphql/static_validation/rules/fields_will_merge.rb +88 -25
- data/lib/graphql/static_validation/rules/fields_will_merge_error.rb +10 -2
- data/lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb +3 -3
- data/lib/graphql/static_validation/rules/fragment_types_exist.rb +12 -2
- data/lib/graphql/static_validation/rules/fragments_are_on_composite_types.rb +1 -1
- data/lib/graphql/static_validation/rules/mutation_root_exists.rb +1 -1
- data/lib/graphql/static_validation/rules/no_definitions_are_present.rb +1 -1
- data/lib/graphql/static_validation/rules/not_single_subscription_error.rb +25 -0
- data/lib/graphql/static_validation/rules/query_root_exists.rb +1 -1
- data/lib/graphql/static_validation/rules/required_arguments_are_present.rb +5 -5
- data/lib/graphql/static_validation/rules/required_input_object_attributes_are_present.rb +5 -5
- data/lib/graphql/static_validation/rules/subscription_root_exists_and_single_subscription_selection.rb +26 -0
- data/lib/graphql/static_validation/rules/unique_directives_per_location.rb +7 -3
- data/lib/graphql/static_validation/rules/variable_default_values_are_correctly_typed.rb +18 -27
- data/lib/graphql/static_validation/rules/variable_names_are_unique.rb +1 -1
- data/lib/graphql/static_validation/rules/variable_usages_are_allowed.rb +2 -2
- data/lib/graphql/static_validation/rules/variables_are_input_types.rb +11 -2
- data/lib/graphql/static_validation/validation_context.rb +21 -5
- data/lib/graphql/static_validation/validator.rb +9 -1
- data/lib/graphql/static_validation.rb +0 -1
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +8 -5
- data/lib/graphql/subscriptions/broadcast_analyzer.rb +11 -5
- data/lib/graphql/subscriptions/default_subscription_resolve_extension.rb +12 -10
- data/lib/graphql/subscriptions/event.rb +21 -4
- data/lib/graphql/subscriptions/serialize.rb +3 -1
- data/lib/graphql/subscriptions.rb +21 -17
- data/lib/graphql/testing/helpers.rb +161 -0
- data/lib/graphql/testing/mock_action_cable.rb +111 -0
- data/lib/graphql/testing.rb +3 -0
- data/lib/graphql/tracing/active_support_notifications_trace.rb +14 -3
- data/lib/graphql/tracing/active_support_notifications_tracing.rb +1 -1
- data/lib/graphql/tracing/appoptics_trace.rb +7 -3
- data/lib/graphql/tracing/appoptics_tracing.rb +9 -2
- data/lib/graphql/tracing/appsignal_trace.rb +32 -59
- data/lib/graphql/tracing/appsignal_tracing.rb +2 -0
- data/lib/graphql/tracing/call_legacy_tracers.rb +66 -0
- data/lib/graphql/tracing/data_dog_trace.rb +46 -162
- data/lib/graphql/tracing/data_dog_tracing.rb +2 -0
- data/lib/graphql/tracing/detailed_trace/active_record_backend.rb +74 -0
- data/lib/graphql/tracing/detailed_trace/memory_backend.rb +60 -0
- data/lib/graphql/tracing/detailed_trace/redis_backend.rb +72 -0
- data/lib/graphql/tracing/detailed_trace.rb +156 -0
- data/lib/graphql/tracing/legacy_hooks_trace.rb +75 -0
- data/lib/graphql/tracing/legacy_trace.rb +4 -61
- data/lib/graphql/tracing/monitor_trace.rb +283 -0
- data/lib/graphql/tracing/new_relic_trace.rb +47 -54
- data/lib/graphql/tracing/new_relic_tracing.rb +2 -0
- data/lib/graphql/tracing/notifications_trace.rb +183 -37
- data/lib/graphql/tracing/notifications_tracing.rb +2 -0
- data/lib/graphql/tracing/null_trace.rb +9 -0
- data/lib/graphql/tracing/perfetto_trace/trace.proto +141 -0
- data/lib/graphql/tracing/perfetto_trace/trace_pb.rb +33 -0
- data/lib/graphql/tracing/perfetto_trace.rb +864 -0
- data/lib/graphql/tracing/platform_tracing.rb +3 -1
- data/lib/graphql/tracing/{prometheus_tracing → prometheus_trace}/graphql_collector.rb +5 -1
- data/lib/graphql/tracing/prometheus_trace.rb +73 -73
- data/lib/graphql/tracing/prometheus_tracing.rb +2 -0
- data/lib/graphql/tracing/scout_trace.rb +32 -58
- data/lib/graphql/tracing/scout_tracing.rb +2 -0
- data/lib/graphql/tracing/sentry_trace.rb +82 -0
- data/lib/graphql/tracing/statsd_trace.rb +33 -45
- data/lib/graphql/tracing/statsd_tracing.rb +2 -0
- data/lib/graphql/tracing/trace.rb +112 -1
- data/lib/graphql/tracing.rb +31 -28
- data/lib/graphql/type_kinds.rb +2 -1
- data/lib/graphql/types/iso_8601_duration.rb +77 -0
- data/lib/graphql/types/relay/connection_behaviors.rb +44 -2
- data/lib/graphql/types/relay/edge_behaviors.rb +18 -0
- 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/types/relay/page_info_behaviors.rb +4 -0
- data/lib/graphql/types.rb +18 -10
- data/lib/graphql/unauthorized_enum_value_error.rb +13 -0
- data/lib/graphql/unauthorized_error.rb +5 -1
- data/lib/graphql/version.rb +1 -1
- data/lib/graphql.rb +71 -54
- data/readme.md +12 -2
- metadata +233 -37
- data/lib/graphql/analysis/ast/analyzer.rb +0 -84
- data/lib/graphql/analysis/ast/field_usage.rb +0 -57
- data/lib/graphql/analysis/ast/max_query_complexity.rb +0 -22
- data/lib/graphql/analysis/ast/max_query_depth.rb +0 -22
- data/lib/graphql/analysis/ast/query_complexity.rb +0 -230
- data/lib/graphql/analysis/ast/query_depth.rb +0 -55
- data/lib/graphql/analysis/ast/visitor.rb +0 -276
- data/lib/graphql/analysis/ast.rb +0 -81
- data/lib/graphql/backtrace/inspect_result.rb +0 -50
- data/lib/graphql/backtrace/trace.rb +0 -96
- data/lib/graphql/backtrace/tracer.rb +0 -80
- data/lib/graphql/deprecation.rb +0 -9
- data/lib/graphql/filter.rb +0 -59
- data/lib/graphql/language/parser.y +0 -560
- data/lib/graphql/language/token.rb +0 -34
- data/lib/graphql/schema/base_64_bp.rb +0 -26
- data/lib/graphql/schema/invalid_type_error.rb +0 -7
- data/lib/graphql/schema/null_mask.rb +0 -11
- data/lib/graphql/static_validation/rules/subscription_root_exists.rb +0 -17
- data/lib/graphql/static_validation/type_stack.rb +0 -216
- data/lib/graphql/subscriptions/instrumentation.rb +0 -28
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GraphQL
|
|
4
|
+
# @see GraphQL::Railtie for automatic Rails integration
|
|
5
|
+
module Autoload
|
|
6
|
+
# Register a constant named `const_name` to be loaded from `path`.
|
|
7
|
+
# This is like `Kernel#autoload` but it tracks the constants so they can be eager-loaded with {#eager_load!}
|
|
8
|
+
# @param const_name [Symbol]
|
|
9
|
+
# @param path [String]
|
|
10
|
+
# @return [void]
|
|
11
|
+
def autoload(const_name, path)
|
|
12
|
+
@_eagerloaded_constants ||= []
|
|
13
|
+
@_eagerloaded_constants << const_name
|
|
14
|
+
|
|
15
|
+
super const_name, path
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Call this to load this constant's `autoload` dependents and continue calling recursively
|
|
19
|
+
# @return [void]
|
|
20
|
+
def eager_load!
|
|
21
|
+
@_eager_loading = true
|
|
22
|
+
if @_eagerloaded_constants
|
|
23
|
+
@_eagerloaded_constants.each { |const_name| const_get(const_name) }
|
|
24
|
+
@_eagerloaded_constants = nil
|
|
25
|
+
end
|
|
26
|
+
nil
|
|
27
|
+
ensure
|
|
28
|
+
@_eager_loading = false
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
private
|
|
32
|
+
|
|
33
|
+
# @return [Boolean] `true` if GraphQL-Ruby is currently eager-loading its constants
|
|
34
|
+
def eager_loading?
|
|
35
|
+
@_eager_loading ||= false
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -36,7 +36,93 @@ module GraphQL
|
|
|
36
36
|
private
|
|
37
37
|
|
|
38
38
|
def rows
|
|
39
|
-
@rows ||=
|
|
39
|
+
@rows ||= begin
|
|
40
|
+
query = @context.query
|
|
41
|
+
query_ctx = @context
|
|
42
|
+
runtime_inst = query_ctx.namespace(:interpreter_runtime)[:runtime]
|
|
43
|
+
result = runtime_inst.instance_variable_get(:@response)
|
|
44
|
+
rows = []
|
|
45
|
+
result_path = []
|
|
46
|
+
last_part = nil
|
|
47
|
+
path = @context.current_path
|
|
48
|
+
path.each do |path_part|
|
|
49
|
+
value = value_at(runtime_inst, result_path)
|
|
50
|
+
|
|
51
|
+
if result_path.empty?
|
|
52
|
+
name = query.selected_operation.operation_type || "query"
|
|
53
|
+
if (n = query.selected_operation_name)
|
|
54
|
+
name += " #{n}"
|
|
55
|
+
end
|
|
56
|
+
args = query.variables
|
|
57
|
+
else
|
|
58
|
+
name = result.graphql_field.path
|
|
59
|
+
args = result.graphql_arguments
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
object = result.graphql_parent ? result.graphql_parent.graphql_application_value : result.graphql_application_value
|
|
63
|
+
object = object.object.inspect
|
|
64
|
+
|
|
65
|
+
rows << [
|
|
66
|
+
result.ast_node.position.join(":"),
|
|
67
|
+
name,
|
|
68
|
+
"#{object}",
|
|
69
|
+
args.to_h.inspect,
|
|
70
|
+
inspect_result(value),
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
result_path << path_part
|
|
74
|
+
if path_part == path.last
|
|
75
|
+
last_part = path_part
|
|
76
|
+
else
|
|
77
|
+
result = result[path_part]
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
object = result.graphql_application_value.object.inspect
|
|
82
|
+
ast_node = nil
|
|
83
|
+
result.graphql_selections.each do |s|
|
|
84
|
+
found_ast_node = find_ast_node(s, last_part)
|
|
85
|
+
if found_ast_node
|
|
86
|
+
ast_node = found_ast_node
|
|
87
|
+
break
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if ast_node
|
|
92
|
+
field_defn = query.get_field(result.graphql_result_type, ast_node.name)
|
|
93
|
+
args = query.arguments_for(ast_node, field_defn).to_h
|
|
94
|
+
field_path = field_defn.path
|
|
95
|
+
if ast_node.alias
|
|
96
|
+
field_path += " as #{ast_node.alias}"
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
rows << [
|
|
100
|
+
ast_node.position.join(":"),
|
|
101
|
+
field_path,
|
|
102
|
+
"#{object}",
|
|
103
|
+
args.inspect,
|
|
104
|
+
inspect_result(@override_value)
|
|
105
|
+
]
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
rows << HEADERS
|
|
109
|
+
rows.reverse!
|
|
110
|
+
rows
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
def find_ast_node(node, last_part)
|
|
115
|
+
return nil unless node
|
|
116
|
+
return node if node.respond_to?(:alias) && node.respond_to?(:name) && (node.alias == last_part || node.name == last_part)
|
|
117
|
+
return nil unless node.respond_to?(:selections)
|
|
118
|
+
return nil if node.selections.nil? || node.selections.empty?
|
|
119
|
+
|
|
120
|
+
node.selections.each do |child|
|
|
121
|
+
child_ast_node = find_ast_node(child, last_part)
|
|
122
|
+
return child_ast_node if child_ast_node
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
nil
|
|
40
126
|
end
|
|
41
127
|
|
|
42
128
|
# @return [String]
|
|
@@ -75,67 +161,44 @@ module GraphQL
|
|
|
75
161
|
table
|
|
76
162
|
end
|
|
77
163
|
|
|
78
|
-
# @return [Array] 5 items for a backtrace table (not `key`)
|
|
79
|
-
def build_rows(context_entry, rows:, top: false)
|
|
80
|
-
case context_entry
|
|
81
|
-
when Backtrace::Frame
|
|
82
|
-
field_alias = context_entry.ast_node.respond_to?(:alias) && context_entry.ast_node.alias
|
|
83
|
-
value = if top && @override_value
|
|
84
|
-
@override_value
|
|
85
|
-
else
|
|
86
|
-
value_at(@context.query.context.namespace(:interpreter_runtime)[:runtime], context_entry.path)
|
|
87
|
-
end
|
|
88
|
-
rows << [
|
|
89
|
-
"#{context_entry.ast_node ? context_entry.ast_node.position.join(":") : ""}",
|
|
90
|
-
"#{context_entry.field.path}#{field_alias ? " as #{field_alias}" : ""}",
|
|
91
|
-
"#{context_entry.object.object.inspect}",
|
|
92
|
-
context_entry.arguments.to_h.inspect, # rubocop:disable Development/ContextIsPassedCop -- unrelated method
|
|
93
|
-
Backtrace::InspectResult.inspect_result(value),
|
|
94
|
-
]
|
|
95
|
-
if (parent = context_entry.parent_frame)
|
|
96
|
-
build_rows(parent, rows: rows)
|
|
97
|
-
else
|
|
98
|
-
rows
|
|
99
|
-
end
|
|
100
|
-
when GraphQL::Query::Context
|
|
101
|
-
query = context_entry.query
|
|
102
|
-
op = query.selected_operation
|
|
103
|
-
if op
|
|
104
|
-
op_type = op.operation_type
|
|
105
|
-
position = "#{op.line}:#{op.col}"
|
|
106
|
-
else
|
|
107
|
-
op_type = "query"
|
|
108
|
-
position = "?:?"
|
|
109
|
-
end
|
|
110
|
-
op_name = query.selected_operation_name
|
|
111
|
-
object = query.root_value
|
|
112
|
-
if object.is_a?(GraphQL::Schema::Object)
|
|
113
|
-
object = object.object
|
|
114
|
-
end
|
|
115
|
-
value = value_at(context_entry.namespace(:interpreter_runtime)[:runtime], [])
|
|
116
|
-
rows << [
|
|
117
|
-
"#{position}",
|
|
118
|
-
"#{op_type}#{op_name ? " #{op_name}" : ""}",
|
|
119
|
-
"#{object.inspect}",
|
|
120
|
-
query.variables.to_h.inspect,
|
|
121
|
-
Backtrace::InspectResult.inspect_result(value),
|
|
122
|
-
]
|
|
123
|
-
else
|
|
124
|
-
raise "Unexpected get_rows subject #{context_entry.class} (#{context_entry.inspect})"
|
|
125
|
-
end
|
|
126
|
-
end
|
|
127
164
|
|
|
128
165
|
def value_at(runtime, path)
|
|
129
166
|
response = runtime.final_result
|
|
130
167
|
path.each do |key|
|
|
131
|
-
|
|
132
|
-
next
|
|
133
|
-
else
|
|
134
|
-
break
|
|
135
|
-
end
|
|
168
|
+
response && (response = response[key])
|
|
136
169
|
end
|
|
137
170
|
response
|
|
138
171
|
end
|
|
172
|
+
|
|
173
|
+
def inspect_result(obj)
|
|
174
|
+
case obj
|
|
175
|
+
when Hash
|
|
176
|
+
"{" +
|
|
177
|
+
obj.map do |key, val|
|
|
178
|
+
"#{key}: #{inspect_truncated(val)}"
|
|
179
|
+
end.join(", ") +
|
|
180
|
+
"}"
|
|
181
|
+
when Array
|
|
182
|
+
"[" +
|
|
183
|
+
obj.map { |v| inspect_truncated(v) }.join(", ") +
|
|
184
|
+
"]"
|
|
185
|
+
else
|
|
186
|
+
inspect_truncated(obj)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
def inspect_truncated(obj)
|
|
191
|
+
case obj
|
|
192
|
+
when Hash
|
|
193
|
+
"{...}"
|
|
194
|
+
when Array
|
|
195
|
+
"[...]"
|
|
196
|
+
when GraphQL::Execution::Lazy
|
|
197
|
+
"(unresolved)"
|
|
198
|
+
else
|
|
199
|
+
"#{obj.inspect}"
|
|
200
|
+
end
|
|
201
|
+
end
|
|
139
202
|
end
|
|
140
203
|
end
|
|
141
204
|
end
|
data/lib/graphql/backtrace.rb
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
|
-
require "graphql/backtrace/inspect_result"
|
|
3
2
|
require "graphql/backtrace/table"
|
|
4
3
|
require "graphql/backtrace/traced_error"
|
|
5
|
-
require "graphql/backtrace/tracer"
|
|
6
|
-
require "graphql/backtrace/trace"
|
|
7
4
|
module GraphQL
|
|
8
5
|
# Wrap unhandled errors with {TracedError}.
|
|
9
6
|
#
|
|
@@ -24,7 +21,7 @@ module GraphQL
|
|
|
24
21
|
def_delegators :to_a, :each, :[]
|
|
25
22
|
|
|
26
23
|
def self.use(schema_defn)
|
|
27
|
-
schema_defn.
|
|
24
|
+
schema_defn.using_backtrace = true
|
|
28
25
|
end
|
|
29
26
|
|
|
30
27
|
def initialize(context, value: nil)
|
|
@@ -40,20 +37,5 @@ module GraphQL
|
|
|
40
37
|
def to_a
|
|
41
38
|
@table.to_backtrace
|
|
42
39
|
end
|
|
43
|
-
|
|
44
|
-
# Used for internal bookkeeping
|
|
45
|
-
# @api private
|
|
46
|
-
class Frame
|
|
47
|
-
attr_reader :path, :query, :ast_node, :object, :field, :arguments, :parent_frame
|
|
48
|
-
def initialize(path:, query:, ast_node:, object:, field:, arguments:, parent_frame:)
|
|
49
|
-
@path = path
|
|
50
|
-
@query = query
|
|
51
|
-
@ast_node = ast_node
|
|
52
|
-
@field = field
|
|
53
|
-
@object = object
|
|
54
|
-
@arguments = arguments
|
|
55
|
-
@parent_frame = parent_frame
|
|
56
|
-
end
|
|
57
|
-
end
|
|
58
40
|
end
|
|
59
41
|
end
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
module GraphQL
|
|
3
|
-
class CoercionError < GraphQL::
|
|
4
|
-
# @return [Hash] Optional custom data for error objects which will be added
|
|
5
|
-
# under the `extensions` key.
|
|
6
|
-
attr_accessor :extensions
|
|
7
|
-
|
|
8
|
-
def initialize(message, extensions: nil)
|
|
9
|
-
@extensions = extensions
|
|
10
|
-
super(message)
|
|
11
|
-
end
|
|
3
|
+
class CoercionError < GraphQL::ExecutionError
|
|
12
4
|
end
|
|
13
5
|
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module GraphQL
|
|
4
|
+
# This module exposes Fiber-level runtime information.
|
|
5
|
+
#
|
|
6
|
+
# It won't work across unrelated fibers, although it will work in child Fibers.
|
|
7
|
+
#
|
|
8
|
+
# @example Setting Up ActiveRecord::QueryLogs
|
|
9
|
+
#
|
|
10
|
+
# config.active_record.query_log_tags = [
|
|
11
|
+
# :namespaced_controller,
|
|
12
|
+
# :action,
|
|
13
|
+
# :job,
|
|
14
|
+
# # ...
|
|
15
|
+
# {
|
|
16
|
+
# # GraphQL runtime info:
|
|
17
|
+
# current_graphql_operation: -> { GraphQL::Current.operation_name },
|
|
18
|
+
# current_graphql_field: -> { GraphQL::Current.field&.path },
|
|
19
|
+
# current_dataloader_source: -> { GraphQL::Current.dataloader_source_class },
|
|
20
|
+
# # ...
|
|
21
|
+
# },
|
|
22
|
+
# ]
|
|
23
|
+
#
|
|
24
|
+
module Current
|
|
25
|
+
# @return [String, nil] Comma-joined operation names for the currently-running {Execution::Multiplex}. `nil` if all operations are anonymous.
|
|
26
|
+
def self.operation_name
|
|
27
|
+
if (m = Fiber[:__graphql_current_multiplex])
|
|
28
|
+
m.context[:__graphql_current_operation_name] ||= begin
|
|
29
|
+
names = m.queries.map { |q| q.selected_operation_name }
|
|
30
|
+
if names.all?(&:nil?)
|
|
31
|
+
nil
|
|
32
|
+
else
|
|
33
|
+
names.join(",")
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
else
|
|
37
|
+
nil
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @see GraphQL::Field#path for a string identifying this field
|
|
42
|
+
# @return [GraphQL::Field, nil] The currently-running field, if there is one.
|
|
43
|
+
def self.field
|
|
44
|
+
Fiber[:__graphql_runtime_info]&.values&.first&.current_field
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# @return [Class, nil] The currently-running {Dataloader::Source} class, if there is one.
|
|
48
|
+
def self.dataloader_source_class
|
|
49
|
+
Fiber[:__graphql_current_dataloader_source]&.class
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# @return [GraphQL::Dataloader::Source, nil] The currently-running source, if there is one
|
|
53
|
+
def self.dataloader_source
|
|
54
|
+
Fiber[:__graphql_current_dataloader_source]
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require "action_controller"
|
|
3
|
+
|
|
4
|
+
module Graphql
|
|
5
|
+
class Dashboard < Rails::Engine
|
|
6
|
+
class ApplicationController < ActionController::Base
|
|
7
|
+
protect_from_forgery with: :exception
|
|
8
|
+
prepend_view_path(File.expand_path("../views", __FILE__))
|
|
9
|
+
|
|
10
|
+
content_security_policy do |policy|
|
|
11
|
+
policy.default_src(:self) if policy.default_src(*policy.default_src).blank?
|
|
12
|
+
policy.connect_src(:self) if policy.connect_src(*policy.connect_src).blank?
|
|
13
|
+
policy.base_uri(:none) if policy.base_uri(*policy.base_uri).blank?
|
|
14
|
+
policy.font_src(:self) if policy.font_src(*policy.font_src).blank?
|
|
15
|
+
policy.img_src(:self, :data) if policy.img_src(*policy.img_src).blank?
|
|
16
|
+
policy.object_src(:none) if policy.object_src(*policy.object_src).blank?
|
|
17
|
+
policy.script_src(:self) if policy.script_src(*policy.script_src).blank?
|
|
18
|
+
policy.style_src(:self) if policy.style_src(*policy.style_src).blank?
|
|
19
|
+
policy.form_action(:self) if policy.form_action(*policy.form_action).blank?
|
|
20
|
+
policy.frame_ancestors(:none) if policy.frame_ancestors(*policy.frame_ancestors).blank?
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def schema_class
|
|
24
|
+
@schema_class ||= begin
|
|
25
|
+
schema_param = request.query_parameters["schema"] || params[:schema]
|
|
26
|
+
case schema_param
|
|
27
|
+
when Class
|
|
28
|
+
schema_param
|
|
29
|
+
when String
|
|
30
|
+
schema_param.constantize
|
|
31
|
+
else
|
|
32
|
+
raise "Missing `params[:schema]`, please provide a class or string to `mount GraphQL::Dashboard, schema: ...`"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
helper_method :schema_class
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
ActiveSupport.run_load_hooks(:graphql_dashboard_application_controller, GraphQL::Dashboard::ApplicationController)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require_relative "./installable"
|
|
3
|
+
module Graphql
|
|
4
|
+
class Dashboard < Rails::Engine
|
|
5
|
+
module DetailedTraces
|
|
6
|
+
class TracesController < Graphql::Dashboard::ApplicationController
|
|
7
|
+
include Installable
|
|
8
|
+
|
|
9
|
+
def index
|
|
10
|
+
@last = params[:last]&.to_i || 50
|
|
11
|
+
@before = params[:before]&.to_i
|
|
12
|
+
@traces = schema_class.detailed_trace.traces(last: @last, before: @before)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def show
|
|
16
|
+
trace = schema_class.detailed_trace.find_trace(params[:id].to_i)
|
|
17
|
+
send_data(trace.trace_data)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def destroy
|
|
21
|
+
schema_class.detailed_trace.delete_trace(params[:id])
|
|
22
|
+
flash[:success] = "Trace deleted."
|
|
23
|
+
head :no_content
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def delete_all
|
|
27
|
+
schema_class.detailed_trace.delete_all_traces
|
|
28
|
+
flash[:success] = "Deleted all traces."
|
|
29
|
+
head :no_content
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
private
|
|
33
|
+
|
|
34
|
+
def feature_installed?
|
|
35
|
+
!!schema_class.detailed_trace
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
INSTALLABLE_COMPONENT_HEADER_HTML = "Detailed traces aren't installed yet."
|
|
39
|
+
INSTALLABLE_COMPONENT_MESSAGE_HTML = <<~HTML.html_safe
|
|
40
|
+
GraphQL-Ruby can instrument production traffic and save tracing artifacts here for later review.
|
|
41
|
+
<br>
|
|
42
|
+
Read more in <a href="https://graphql-ruby.org/queries/tracing#detailed-traces">the detailed tracing docs</a>.
|
|
43
|
+
HTML
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
module Graphql
|
|
3
|
+
class Dashboard < Rails::Engine
|
|
4
|
+
module Installable
|
|
5
|
+
def self.included(child_module)
|
|
6
|
+
child_module.before_action(:check_installed)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def feature_installed?
|
|
10
|
+
raise "Implement #{self.class}#feature_installed? to check whether this should render `not_installed` or not."
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def check_installed
|
|
14
|
+
if !feature_installed?
|
|
15
|
+
@component_header_html = self.class::INSTALLABLE_COMPONENT_HEADER_HTML
|
|
16
|
+
@component_message_html = self.class::INSTALLABLE_COMPONENT_MESSAGE_HTML
|
|
17
|
+
render "graphql/dashboard/not_installed"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require_relative "./installable"
|
|
3
|
+
module Graphql
|
|
4
|
+
class Dashboard < Rails::Engine
|
|
5
|
+
module Limiters
|
|
6
|
+
class LimitersController < Dashboard::ApplicationController
|
|
7
|
+
include Installable
|
|
8
|
+
FALLBACK_CSP_NONCE_GENERATOR = ->(_req) { SecureRandom.hex(32) }
|
|
9
|
+
|
|
10
|
+
def show
|
|
11
|
+
name = params[:name]
|
|
12
|
+
@title = case name
|
|
13
|
+
when "runtime"
|
|
14
|
+
"Runtime Limiter"
|
|
15
|
+
when "active_operations"
|
|
16
|
+
"Active Operation Limiter"
|
|
17
|
+
when "mutations"
|
|
18
|
+
"Mutation Limiter"
|
|
19
|
+
else
|
|
20
|
+
raise ArgumentError, "Unknown limiter name: #{name}"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
limiter = limiter_for(name)
|
|
24
|
+
if limiter.nil?
|
|
25
|
+
@install_path = "http://graphql-ruby.org/limiters/#{name}"
|
|
26
|
+
else
|
|
27
|
+
@chart_mode = params[:chart] || "day"
|
|
28
|
+
@current_soft = limiter.soft_limit_enabled?
|
|
29
|
+
@histogram = limiter.dashboard_histogram(@chart_mode)
|
|
30
|
+
|
|
31
|
+
# These configs may have already been defined by the application; provide overrides here if not.
|
|
32
|
+
request.content_security_policy_nonce_generator ||= FALLBACK_CSP_NONCE_GENERATOR
|
|
33
|
+
nonce_dirs = request.content_security_policy_nonce_directives || []
|
|
34
|
+
if !nonce_dirs.include?("style-src")
|
|
35
|
+
nonce_dirs += ["style-src"]
|
|
36
|
+
request.content_security_policy_nonce_directives = nonce_dirs
|
|
37
|
+
end
|
|
38
|
+
@csp_nonce = request.content_security_policy_nonce
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def update
|
|
43
|
+
name = params[:name]
|
|
44
|
+
limiter = limiter_for(name)
|
|
45
|
+
if limiter
|
|
46
|
+
limiter.toggle_soft_limit
|
|
47
|
+
flash[:success] = if limiter.soft_limit_enabled?
|
|
48
|
+
"Enabled soft limiting -- over-limit traffic will be logged but not rejected."
|
|
49
|
+
else
|
|
50
|
+
"Disabled soft limiting -- over-limit traffic will be rejected."
|
|
51
|
+
end
|
|
52
|
+
else
|
|
53
|
+
flash[:warning] = "No limiter configured for #{name.inspect}"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
redirect_to graphql_dashboard.limiters_limiter_path(name, chart: params[:chart])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
private
|
|
60
|
+
|
|
61
|
+
def limiter_for(name)
|
|
62
|
+
case name
|
|
63
|
+
when "runtime"
|
|
64
|
+
schema_class.enterprise_runtime_limiter
|
|
65
|
+
when "active_operations"
|
|
66
|
+
schema_class.enterprise_active_operation_limiter
|
|
67
|
+
when "mutations"
|
|
68
|
+
schema_class.enterprise_mutation_limiter
|
|
69
|
+
else
|
|
70
|
+
raise ArgumentError, "Unknown limiter: #{name}"
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
def feature_installed?
|
|
75
|
+
defined?(GraphQL::Enterprise::Limiter) &&
|
|
76
|
+
(
|
|
77
|
+
schema_class.enterprise_active_operation_limiter ||
|
|
78
|
+
schema_class.enterprise_runtime_limiter ||
|
|
79
|
+
(schema_class.respond_to?(:enterprise_mutation_limiter) && schema_class.enterprise_mutation_limiter)
|
|
80
|
+
)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
INSTALLABLE_COMPONENT_HEADER_HTML = "Rate limiters aren't installed on this schema yet."
|
|
85
|
+
INSTALLABLE_COMPONENT_MESSAGE_HTML = <<-HTML.html_safe
|
|
86
|
+
Check out the docs to get started with GraphQL-Enterprise's
|
|
87
|
+
<a href="https://graphql-ruby.org/limiters/runtime.html">runtime limiter</a> or
|
|
88
|
+
<a href="https://graphql-ruby.org/limiters/active_operations.html">active operation limiter</a>.
|
|
89
|
+
HTML
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|