graphql 2.3.7 → 2.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/graphql/install_generator.rb +46 -0
- data/lib/generators/graphql/orm_mutations_base.rb +1 -1
- data/lib/generators/graphql/templates/base_resolver.erb +2 -0
- data/lib/generators/graphql/type_generator.rb +1 -1
- data/lib/graphql/analysis/field_usage.rb +1 -1
- data/lib/graphql/analysis/query_complexity.rb +3 -3
- data/lib/graphql/analysis/visitor.rb +8 -7
- data/lib/graphql/analysis.rb +4 -4
- data/lib/graphql/autoload.rb +38 -0
- data/lib/graphql/current.rb +52 -0
- data/lib/graphql/dataloader/async_dataloader.rb +7 -6
- data/lib/graphql/dataloader/source.rb +7 -4
- data/lib/graphql/dataloader.rb +40 -19
- data/lib/graphql/execution/interpreter/arguments_cache.rb +5 -10
- data/lib/graphql/execution/interpreter/resolve.rb +13 -9
- data/lib/graphql/execution/interpreter/runtime.rb +35 -31
- data/lib/graphql/execution/interpreter.rb +9 -5
- data/lib/graphql/execution/lookahead.rb +18 -11
- data/lib/graphql/introspection/directive_type.rb +1 -1
- data/lib/graphql/introspection/entry_points.rb +2 -2
- data/lib/graphql/introspection/field_type.rb +1 -1
- data/lib/graphql/introspection/schema_type.rb +6 -11
- data/lib/graphql/introspection/type_type.rb +5 -5
- data/lib/graphql/invalid_null_error.rb +1 -1
- data/lib/graphql/language/cache.rb +13 -0
- data/lib/graphql/language/comment.rb +18 -0
- data/lib/graphql/language/document_from_schema_definition.rb +62 -34
- data/lib/graphql/language/lexer.rb +18 -15
- data/lib/graphql/language/nodes.rb +24 -16
- data/lib/graphql/language/parser.rb +14 -1
- data/lib/graphql/language/printer.rb +31 -15
- data/lib/graphql/language/sanitized_printer.rb +1 -1
- data/lib/graphql/language.rb +6 -6
- data/lib/graphql/pagination/connection.rb +1 -1
- data/lib/graphql/query/context/scoped_context.rb +1 -1
- data/lib/graphql/query/context.rb +13 -6
- data/lib/graphql/query/null_context.rb +3 -5
- data/lib/graphql/query/variable_validation_error.rb +1 -1
- data/lib/graphql/query.rb +72 -18
- data/lib/graphql/railtie.rb +7 -0
- 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 +2 -1
- data/lib/graphql/schema/always_visible.rb +6 -2
- data/lib/graphql/schema/argument.rb +14 -1
- data/lib/graphql/schema/build_from_definition.rb +9 -1
- data/lib/graphql/schema/directive/flagged.rb +2 -2
- data/lib/graphql/schema/directive.rb +1 -1
- data/lib/graphql/schema/enum.rb +71 -23
- data/lib/graphql/schema/enum_value.rb +10 -2
- data/lib/graphql/schema/field/connection_extension.rb +1 -1
- data/lib/graphql/schema/field/scope_extension.rb +1 -1
- data/lib/graphql/schema/field.rb +102 -47
- data/lib/graphql/schema/field_extension.rb +1 -1
- data/lib/graphql/schema/has_single_input_argument.rb +5 -2
- data/lib/graphql/schema/input_object.rb +90 -39
- data/lib/graphql/schema/interface.rb +22 -5
- data/lib/graphql/schema/introspection_system.rb +5 -16
- data/lib/graphql/schema/loader.rb +1 -1
- data/lib/graphql/schema/member/base_dsl_methods.rb +15 -0
- data/lib/graphql/schema/member/has_arguments.rb +36 -23
- data/lib/graphql/schema/member/has_directives.rb +3 -3
- data/lib/graphql/schema/member/has_fields.rb +26 -6
- data/lib/graphql/schema/member/has_interfaces.rb +4 -4
- 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/object.rb +8 -0
- data/lib/graphql/schema/printer.rb +1 -0
- data/lib/graphql/schema/relay_classic_mutation.rb +0 -1
- data/lib/graphql/schema/resolver.rb +12 -14
- data/lib/graphql/schema/subscription.rb +52 -6
- data/lib/graphql/schema/type_expression.rb +2 -2
- data/lib/graphql/schema/union.rb +1 -1
- data/lib/graphql/schema/validator/all_validator.rb +62 -0
- data/lib/graphql/schema/validator/required_validator.rb +28 -4
- data/lib/graphql/schema/validator.rb +3 -1
- data/lib/graphql/schema/visibility/migration.rb +188 -0
- data/lib/graphql/schema/visibility/profile.rb +359 -0
- data/lib/graphql/schema/visibility/visit.rb +190 -0
- data/lib/graphql/schema/visibility.rb +294 -0
- data/lib/graphql/schema/warden.rb +179 -16
- data/lib/graphql/schema.rb +348 -94
- data/lib/graphql/static_validation/base_visitor.rb +6 -5
- data/lib/graphql/static_validation/literal_validator.rb +4 -4
- 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 +2 -2
- data/lib/graphql/static_validation/rules/fields_will_merge.rb +8 -7
- 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/query_root_exists.rb +1 -1
- data/lib/graphql/static_validation/rules/required_arguments_are_present.rb +4 -4
- data/lib/graphql/static_validation/rules/required_input_object_attributes_are_present.rb +3 -3
- data/lib/graphql/static_validation/rules/subscription_root_exists.rb +1 -1
- data/lib/graphql/static_validation/rules/unique_directives_per_location.rb +1 -1
- 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 +18 -2
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +3 -2
- data/lib/graphql/subscriptions/broadcast_analyzer.rb +10 -4
- data/lib/graphql/subscriptions/default_subscription_resolve_extension.rb +12 -10
- data/lib/graphql/subscriptions/event.rb +13 -2
- data/lib/graphql/subscriptions/serialize.rb +2 -0
- data/lib/graphql/subscriptions.rb +6 -4
- data/lib/graphql/testing/helpers.rb +10 -6
- data/lib/graphql/tracing/active_support_notifications_trace.rb +1 -1
- data/lib/graphql/tracing/active_support_notifications_tracing.rb +1 -1
- data/lib/graphql/tracing/appoptics_trace.rb +2 -0
- data/lib/graphql/tracing/appoptics_tracing.rb +2 -0
- data/lib/graphql/tracing/appsignal_trace.rb +2 -0
- 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 +2 -0
- data/lib/graphql/tracing/data_dog_tracing.rb +2 -0
- data/lib/graphql/tracing/legacy_hooks_trace.rb +1 -0
- data/lib/graphql/tracing/legacy_trace.rb +4 -61
- data/lib/graphql/tracing/new_relic_trace.rb +2 -0
- data/lib/graphql/tracing/new_relic_tracing.rb +2 -0
- data/lib/graphql/tracing/notifications_trace.rb +2 -2
- data/lib/graphql/tracing/notifications_tracing.rb +2 -0
- data/lib/graphql/tracing/null_trace.rb +9 -0
- data/lib/graphql/tracing/prometheus_trace/graphql_collector.rb +2 -0
- data/lib/graphql/tracing/prometheus_trace.rb +5 -0
- data/lib/graphql/tracing/prometheus_tracing.rb +2 -0
- data/lib/graphql/tracing/scout_trace.rb +2 -0
- data/lib/graphql/tracing/scout_tracing.rb +2 -0
- data/lib/graphql/tracing/sentry_trace.rb +2 -0
- data/lib/graphql/tracing/statsd_trace.rb +2 -0
- data/lib/graphql/tracing/statsd_tracing.rb +2 -0
- data/lib/graphql/tracing/trace.rb +3 -0
- data/lib/graphql/tracing.rb +28 -30
- data/lib/graphql/types/relay/connection_behaviors.rb +12 -2
- data/lib/graphql/types/relay/edge_behaviors.rb +11 -1
- data/lib/graphql/types/relay/page_info_behaviors.rb +4 -0
- data/lib/graphql/types.rb +18 -11
- data/lib/graphql/unauthorized_enum_value_error.rb +13 -0
- data/lib/graphql/version.rb +1 -1
- data/lib/graphql.rb +53 -45
- metadata +33 -8
- data/lib/graphql/language/token.rb +0 -34
- data/lib/graphql/schema/invalid_type_error.rb +0 -7
@@ -10,10 +10,11 @@ module GraphQL
|
|
10
10
|
child_class.extend(ClassMethods)
|
11
11
|
child_class.class_eval { self.node_type = nil }
|
12
12
|
child_class.node_nullable(true)
|
13
|
+
child_class.default_broadcastable(nil)
|
13
14
|
end
|
14
15
|
|
15
16
|
def node
|
16
|
-
current_runtime_state =
|
17
|
+
current_runtime_state = Fiber[:__graphql_runtime_info]
|
17
18
|
query_runtime_state = current_runtime_state[context.query]
|
18
19
|
query_runtime_state.was_authorized_by_scope_items = @object.was_authorized_by_scope_items?
|
19
20
|
@object.node
|
@@ -24,12 +25,21 @@ module GraphQL
|
|
24
25
|
super
|
25
26
|
child_class.node_type = nil
|
26
27
|
child_class.node_nullable = nil
|
28
|
+
child_class.default_broadcastable(default_broadcastable?)
|
27
29
|
end
|
28
30
|
|
29
31
|
def default_relay?
|
30
32
|
true
|
31
33
|
end
|
32
34
|
|
35
|
+
def default_broadcastable?
|
36
|
+
@default_broadcastable
|
37
|
+
end
|
38
|
+
|
39
|
+
def default_broadcastable(new_value)
|
40
|
+
@default_broadcastable = new_value
|
41
|
+
end
|
42
|
+
|
33
43
|
# Get or set the Object type that this edge wraps.
|
34
44
|
#
|
35
45
|
# @param node_type [Class] A `Schema::Object` subclass
|
data/lib/graphql/types.rb
CHANGED
@@ -1,12 +1,19 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
2
|
+
|
3
|
+
module GraphQL
|
4
|
+
module Types
|
5
|
+
extend Autoload
|
6
|
+
|
7
|
+
autoload :Boolean, "graphql/types/boolean"
|
8
|
+
autoload :BigInt, "graphql/types/big_int"
|
9
|
+
autoload :Float, "graphql/types/float"
|
10
|
+
autoload :ID, "graphql/types/id"
|
11
|
+
autoload :Int, "graphql/types/int"
|
12
|
+
autoload :JSON, "graphql/types/json"
|
13
|
+
autoload :String, "graphql/types/string"
|
14
|
+
autoload :ISO8601Date, "graphql/types/iso_8601_date"
|
15
|
+
autoload :ISO8601DateTime, "graphql/types/iso_8601_date_time"
|
16
|
+
autoload :ISO8601Duration, "graphql/types/iso_8601_duration"
|
17
|
+
autoload :Relay, "graphql/types/relay"
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module GraphQL
|
3
|
+
class UnauthorizedEnumValueError < GraphQL::UnauthorizedError
|
4
|
+
# @return [GraphQL::Schema::EnumValue] The value whose `#authorized?` check returned false
|
5
|
+
attr_accessor :enum_value
|
6
|
+
|
7
|
+
def initialize(type:, context:, enum_value:)
|
8
|
+
@enum_value = enum_value
|
9
|
+
message ||= "#{enum_value.path} failed authorization"
|
10
|
+
super(message, object: enum_value.value, type: type, context: context)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/graphql/version.rb
CHANGED
data/lib/graphql.rb
CHANGED
@@ -4,8 +4,20 @@ require "json"
|
|
4
4
|
require "set"
|
5
5
|
require "singleton"
|
6
6
|
require "forwardable"
|
7
|
+
require "fiber/storage"
|
8
|
+
require "graphql/autoload"
|
7
9
|
|
8
10
|
module GraphQL
|
11
|
+
extend Autoload
|
12
|
+
|
13
|
+
# Load all `autoload`-configured classes, and also eager-load dependents who have autoloads of their own.
|
14
|
+
def self.eager_load!
|
15
|
+
super
|
16
|
+
Query.eager_load!
|
17
|
+
Types.eager_load!
|
18
|
+
Schema.eager_load!
|
19
|
+
end
|
20
|
+
|
9
21
|
class Error < StandardError
|
10
22
|
end
|
11
23
|
|
@@ -73,51 +85,47 @@ This is probably a bug in GraphQL-Ruby, please report this error on GitHub: http
|
|
73
85
|
end
|
74
86
|
|
75
87
|
self.reject_numbers_followed_by_names = false
|
76
|
-
end
|
77
88
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
89
|
+
autoload :ExecutionError, "graphql/execution_error"
|
90
|
+
autoload :RuntimeTypeError, "graphql/runtime_type_error"
|
91
|
+
autoload :UnresolvedTypeError, "graphql/unresolved_type_error"
|
92
|
+
autoload :InvalidNullError, "graphql/invalid_null_error"
|
93
|
+
autoload :AnalysisError, "graphql/analysis_error"
|
94
|
+
autoload :CoercionError, "graphql/coercion_error"
|
95
|
+
autoload :InvalidNameError, "graphql/invalid_name_error"
|
96
|
+
autoload :IntegerDecodingError, "graphql/integer_decoding_error"
|
97
|
+
autoload :IntegerEncodingError, "graphql/integer_encoding_error"
|
98
|
+
autoload :StringEncodingError, "graphql/string_encoding_error"
|
99
|
+
autoload :DateEncodingError, "graphql/date_encoding_error"
|
100
|
+
autoload :DurationEncodingError, "graphql/duration_encoding_error"
|
101
|
+
autoload :TypeKinds, "graphql/type_kinds"
|
102
|
+
autoload :NameValidator, "graphql/name_validator"
|
103
|
+
autoload :Language, "graphql/language"
|
104
|
+
|
105
|
+
autoload :Analysis, "graphql/analysis"
|
106
|
+
autoload :Tracing, "graphql/tracing"
|
107
|
+
autoload :Dig, "graphql/dig"
|
108
|
+
autoload :Execution, "graphql/execution"
|
109
|
+
autoload :Pagination, "graphql/pagination"
|
110
|
+
autoload :Schema, "graphql/schema"
|
111
|
+
autoload :Query, "graphql/query"
|
112
|
+
autoload :Dataloader, "graphql/dataloader"
|
113
|
+
autoload :Types, "graphql/types"
|
114
|
+
autoload :StaticValidation, "graphql/static_validation"
|
115
|
+
autoload :Execution, "graphql/execution"
|
116
|
+
autoload :Introspection, "graphql/introspection"
|
117
|
+
autoload :Relay, "graphql/relay"
|
118
|
+
autoload :Subscriptions, "graphql/subscriptions"
|
119
|
+
autoload :ParseError, "graphql/parse_error"
|
120
|
+
autoload :Backtrace, "graphql/backtrace"
|
121
|
+
|
122
|
+
autoload :UnauthorizedError, "graphql/unauthorized_error"
|
123
|
+
autoload :UnauthorizedEnumValueError, "graphql/unauthorized_enum_value_error"
|
124
|
+
autoload :UnauthorizedFieldError, "graphql/unauthorized_field_error"
|
125
|
+
autoload :LoadApplicationObjectFailedError, "graphql/load_application_object_failed_error"
|
126
|
+
autoload :Testing, "graphql/testing"
|
127
|
+
autoload :Current, "graphql/current"
|
128
|
+
end
|
114
129
|
|
115
130
|
require "graphql/version"
|
116
|
-
require "graphql/
|
117
|
-
require "graphql/parse_error"
|
118
|
-
require "graphql/backtrace"
|
119
|
-
|
120
|
-
require "graphql/unauthorized_error"
|
121
|
-
require "graphql/unauthorized_field_error"
|
122
|
-
require "graphql/load_application_object_failed_error"
|
123
|
-
require "graphql/testing"
|
131
|
+
require "graphql/railtie" if defined? Rails::Railtie
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fiber-storage
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: benchmark-ips
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,16 +168,16 @@ dependencies:
|
|
154
168
|
name: rubocop
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- -
|
171
|
+
- - ">="
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
173
|
+
version: '0'
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
|
-
- -
|
178
|
+
- - ">="
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
180
|
+
version: '0'
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: jekyll
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -314,6 +328,7 @@ files:
|
|
314
328
|
- lib/graphql/analysis/query_depth.rb
|
315
329
|
- lib/graphql/analysis/visitor.rb
|
316
330
|
- lib/graphql/analysis_error.rb
|
331
|
+
- lib/graphql/autoload.rb
|
317
332
|
- lib/graphql/backtrace.rb
|
318
333
|
- lib/graphql/backtrace/inspect_result.rb
|
319
334
|
- lib/graphql/backtrace/table.rb
|
@@ -321,6 +336,7 @@ files:
|
|
321
336
|
- lib/graphql/backtrace/traced_error.rb
|
322
337
|
- lib/graphql/backtrace/tracer.rb
|
323
338
|
- lib/graphql/coercion_error.rb
|
339
|
+
- lib/graphql/current.rb
|
324
340
|
- lib/graphql/dataloader.rb
|
325
341
|
- lib/graphql/dataloader/async_dataloader.rb
|
326
342
|
- lib/graphql/dataloader/null_dataloader.rb
|
@@ -367,6 +383,7 @@ files:
|
|
367
383
|
- lib/graphql/language.rb
|
368
384
|
- lib/graphql/language/block_string.rb
|
369
385
|
- lib/graphql/language/cache.rb
|
386
|
+
- lib/graphql/language/comment.rb
|
370
387
|
- lib/graphql/language/definition_slice.rb
|
371
388
|
- lib/graphql/language/document_from_schema_definition.rb
|
372
389
|
- lib/graphql/language/generation.rb
|
@@ -376,7 +393,6 @@ files:
|
|
376
393
|
- lib/graphql/language/printer.rb
|
377
394
|
- lib/graphql/language/sanitized_printer.rb
|
378
395
|
- lib/graphql/language/static_visitor.rb
|
379
|
-
- lib/graphql/language/token.rb
|
380
396
|
- lib/graphql/language/visitor.rb
|
381
397
|
- lib/graphql/load_application_object_failed_error.rb
|
382
398
|
- lib/graphql/name_validator.rb
|
@@ -408,6 +424,8 @@ files:
|
|
408
424
|
- lib/graphql/rubocop/graphql/base_cop.rb
|
409
425
|
- lib/graphql/rubocop/graphql/default_null_true.rb
|
410
426
|
- lib/graphql/rubocop/graphql/default_required_true.rb
|
427
|
+
- lib/graphql/rubocop/graphql/field_type_in_block.rb
|
428
|
+
- lib/graphql/rubocop/graphql/root_types_in_block.rb
|
411
429
|
- lib/graphql/runtime_type_error.rb
|
412
430
|
- lib/graphql/schema.rb
|
413
431
|
- lib/graphql/schema/addition.rb
|
@@ -439,7 +457,6 @@ files:
|
|
439
457
|
- lib/graphql/schema/input_object.rb
|
440
458
|
- lib/graphql/schema/interface.rb
|
441
459
|
- lib/graphql/schema/introspection_system.rb
|
442
|
-
- lib/graphql/schema/invalid_type_error.rb
|
443
460
|
- lib/graphql/schema/late_bound_type.rb
|
444
461
|
- lib/graphql/schema/list.rb
|
445
462
|
- lib/graphql/schema/loader.rb
|
@@ -476,6 +493,7 @@ files:
|
|
476
493
|
- lib/graphql/schema/union.rb
|
477
494
|
- lib/graphql/schema/unique_within_type.rb
|
478
495
|
- lib/graphql/schema/validator.rb
|
496
|
+
- lib/graphql/schema/validator/all_validator.rb
|
479
497
|
- lib/graphql/schema/validator/allow_blank_validator.rb
|
480
498
|
- lib/graphql/schema/validator/allow_null_validator.rb
|
481
499
|
- lib/graphql/schema/validator/exclusion_validator.rb
|
@@ -484,6 +502,10 @@ files:
|
|
484
502
|
- lib/graphql/schema/validator/length_validator.rb
|
485
503
|
- lib/graphql/schema/validator/numericality_validator.rb
|
486
504
|
- lib/graphql/schema/validator/required_validator.rb
|
505
|
+
- lib/graphql/schema/visibility.rb
|
506
|
+
- lib/graphql/schema/visibility/migration.rb
|
507
|
+
- lib/graphql/schema/visibility/profile.rb
|
508
|
+
- lib/graphql/schema/visibility/visit.rb
|
487
509
|
- lib/graphql/schema/warden.rb
|
488
510
|
- lib/graphql/schema/wrapper.rb
|
489
511
|
- lib/graphql/static_validation.rb
|
@@ -572,6 +594,7 @@ files:
|
|
572
594
|
- lib/graphql/tracing/appoptics_tracing.rb
|
573
595
|
- lib/graphql/tracing/appsignal_trace.rb
|
574
596
|
- lib/graphql/tracing/appsignal_tracing.rb
|
597
|
+
- lib/graphql/tracing/call_legacy_tracers.rb
|
575
598
|
- lib/graphql/tracing/data_dog_trace.rb
|
576
599
|
- lib/graphql/tracing/data_dog_tracing.rb
|
577
600
|
- lib/graphql/tracing/legacy_hooks_trace.rb
|
@@ -580,6 +603,7 @@ files:
|
|
580
603
|
- lib/graphql/tracing/new_relic_tracing.rb
|
581
604
|
- lib/graphql/tracing/notifications_trace.rb
|
582
605
|
- lib/graphql/tracing/notifications_tracing.rb
|
606
|
+
- lib/graphql/tracing/null_trace.rb
|
583
607
|
- lib/graphql/tracing/platform_trace.rb
|
584
608
|
- lib/graphql/tracing/platform_tracing.rb
|
585
609
|
- lib/graphql/tracing/prometheus_trace.rb
|
@@ -614,6 +638,7 @@ files:
|
|
614
638
|
- lib/graphql/types/relay/page_info.rb
|
615
639
|
- lib/graphql/types/relay/page_info_behaviors.rb
|
616
640
|
- lib/graphql/types/string.rb
|
641
|
+
- lib/graphql/unauthorized_enum_value_error.rb
|
617
642
|
- lib/graphql/unauthorized_error.rb
|
618
643
|
- lib/graphql/unauthorized_field_error.rb
|
619
644
|
- lib/graphql/unresolved_type_error.rb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
module GraphQL
|
3
|
-
module Language
|
4
|
-
# Emitted by the lexer and passed to the parser.
|
5
|
-
# Contains type, value and position data.
|
6
|
-
class Token
|
7
|
-
# @return [Symbol] The kind of token this is
|
8
|
-
attr_reader :name
|
9
|
-
# @return [String] The text of this token
|
10
|
-
attr_reader :value
|
11
|
-
attr_reader :prev_token, :line, :col
|
12
|
-
|
13
|
-
def initialize(name, value, line, col, prev_token)
|
14
|
-
@name = name
|
15
|
-
@value = -value
|
16
|
-
@line = line
|
17
|
-
@col = col
|
18
|
-
@prev_token = prev_token
|
19
|
-
end
|
20
|
-
|
21
|
-
alias to_s value
|
22
|
-
def to_i; @value.to_i; end
|
23
|
-
def to_f; @value.to_f; end
|
24
|
-
|
25
|
-
def line_and_column
|
26
|
-
[@line, @col]
|
27
|
-
end
|
28
|
-
|
29
|
-
def inspect
|
30
|
-
"(#{@name} #{@value.inspect} [#{@line}:#{@col}])"
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|