graphql 1.8.0.pre1 → 1.8.0.pre2
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/function_generator.rb +1 -1
- data/lib/generators/graphql/loader_generator.rb +1 -1
- data/lib/generators/graphql/mutation_generator.rb +6 -1
- data/lib/generators/graphql/templates/function.erb +2 -2
- data/lib/generators/graphql/templates/loader.erb +2 -2
- data/lib/graphql.rb +1 -0
- data/lib/graphql/execution.rb +1 -0
- data/lib/graphql/execution/instrumentation.rb +82 -0
- data/lib/graphql/execution/multiplex.rb +11 -28
- data/lib/graphql/field.rb +5 -0
- data/lib/graphql/internal_representation/node.rb +1 -1
- data/lib/graphql/language.rb +1 -0
- data/lib/graphql/language/document_from_schema_definition.rb +185 -0
- data/lib/graphql/language/lexer.rb +3 -3
- data/lib/graphql/language/lexer.rl +2 -2
- data/lib/graphql/language/token.rb +9 -2
- data/lib/graphql/query.rb +4 -0
- data/lib/graphql/railtie.rb +83 -0
- data/lib/graphql/relay/relation_connection.rb +13 -18
- data/lib/graphql/schema.rb +6 -0
- data/lib/graphql/schema/argument.rb +1 -1
- data/lib/graphql/schema/build_from_definition.rb +2 -0
- data/lib/graphql/schema/field.rb +5 -2
- data/lib/graphql/schema/input_object.rb +2 -2
- data/lib/graphql/schema/member.rb +10 -0
- data/lib/graphql/schema/member/build_type.rb +8 -0
- data/lib/graphql/schema/member/instrumentation.rb +3 -3
- data/lib/graphql/subscriptions/action_cable_subscriptions.rb +6 -4
- data/lib/graphql/tracing.rb +1 -0
- data/lib/graphql/tracing/data_dog_tracing.rb +45 -0
- data/lib/graphql/tracing/platform_tracing.rb +20 -7
- data/lib/graphql/upgrader/member.rb +111 -0
- data/lib/graphql/upgrader/schema.rb +37 -0
- data/lib/graphql/version.rb +1 -1
- data/readme.md +1 -1
- data/spec/dummy/app/channels/graphql_channel.rb +22 -1
- data/spec/dummy/log/development.log +239 -0
- data/spec/dummy/log/test.log +204 -0
- data/spec/dummy/test/system/action_cable_subscription_test.rb +4 -0
- data/spec/dummy/tmp/screenshots/failures_test_it_handles_subscriptions.png +0 -0
- data/spec/generators/graphql/function_generator_spec.rb +26 -0
- data/spec/generators/graphql/loader_generator_spec.rb +24 -0
- data/spec/graphql/analysis/max_query_complexity_spec.rb +3 -3
- data/spec/graphql/analysis/max_query_depth_spec.rb +3 -3
- data/spec/graphql/base_type_spec.rb +12 -0
- data/spec/graphql/boolean_type_spec.rb +3 -3
- data/spec/graphql/execution/execute_spec.rb +1 -1
- data/spec/graphql/execution/instrumentation_spec.rb +165 -0
- data/spec/graphql/execution/multiplex_spec.rb +1 -1
- data/spec/graphql/float_type_spec.rb +2 -2
- data/spec/graphql/id_type_spec.rb +1 -1
- data/spec/graphql/input_object_type_spec.rb +2 -2
- data/spec/graphql/int_type_spec.rb +2 -2
- data/spec/graphql/internal_representation/rewrite_spec.rb +2 -2
- data/spec/graphql/introspection/schema_type_spec.rb +1 -0
- data/spec/graphql/language/document_from_schema_definition_spec.rb +337 -0
- data/spec/graphql/language/lexer_spec.rb +12 -1
- data/spec/graphql/language/parser_spec.rb +1 -1
- data/spec/graphql/query/arguments_spec.rb +3 -3
- data/spec/graphql/query/variables_spec.rb +1 -1
- data/spec/graphql/query_spec.rb +4 -4
- data/spec/graphql/relay/base_connection_spec.rb +1 -1
- data/spec/graphql/relay/connection_resolve_spec.rb +1 -1
- data/spec/graphql/relay/connection_type_spec.rb +1 -1
- data/spec/graphql/relay/mutation_spec.rb +3 -3
- data/spec/graphql/relay/relation_connection_spec.rb +58 -0
- data/spec/graphql/schema/build_from_definition_spec.rb +14 -0
- data/spec/graphql/schema/field_spec.rb +5 -1
- data/spec/graphql/schema/instrumentation_spec.rb +39 -0
- data/spec/graphql/schema/validation_spec.rb +1 -1
- data/spec/graphql/schema/warden_spec.rb +11 -11
- data/spec/graphql/schema_spec.rb +8 -1
- data/spec/graphql/string_type_spec.rb +3 -3
- data/spec/graphql/subscriptions_spec.rb +1 -1
- data/spec/graphql/tracing/platform_tracing_spec.rb +59 -0
- data/spec/graphql/upgrader/member_spec.rb +222 -0
- data/spec/graphql/upgrader/schema_spec.rb +82 -0
- data/spec/support/dummy/schema.rb +19 -0
- data/spec/support/jazz.rb +14 -14
- data/spec/support/star_wars/data.rb +1 -2
- metadata +18 -2
@@ -0,0 +1,222 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require './lib/graphql/upgrader/member.rb'
|
5
|
+
|
6
|
+
describe GraphQL::Upgrader::Member do
|
7
|
+
def upgrade(old)
|
8
|
+
GraphQL::Upgrader::Member.new(old).upgrade
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'field arguments' do
|
12
|
+
it 'upgrades' do
|
13
|
+
old = %{argument :status, !TodoStatus, "Restrict items to this status"}
|
14
|
+
new = %{argument :status, TodoStatus, "Restrict items to this status", null: false}
|
15
|
+
|
16
|
+
assert_equal upgrade(old), new
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'upgrades the property definition to method' do
|
21
|
+
old = %{field :name, String, property: :name}
|
22
|
+
new = %{field :name, String, method: :name, null: false}
|
23
|
+
|
24
|
+
assert_equal upgrade(old), new
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'name' do
|
28
|
+
it 'removes the name field if it can be inferred from the class' do
|
29
|
+
old = %{
|
30
|
+
UserType = GraphQL::ObjectType.define do
|
31
|
+
name "User"
|
32
|
+
end
|
33
|
+
}
|
34
|
+
new = %{
|
35
|
+
class UserType < BaseObject
|
36
|
+
end
|
37
|
+
}
|
38
|
+
assert_equal upgrade(old), new
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'upgrades the name into graphql_name if it can\'t be inferred from the class' do
|
42
|
+
old = %{
|
43
|
+
TeamType = GraphQL::ObjectType.define do
|
44
|
+
name "User"
|
45
|
+
end
|
46
|
+
}
|
47
|
+
new = %{
|
48
|
+
class TeamType < BaseObject
|
49
|
+
graphql_name "User"
|
50
|
+
end
|
51
|
+
}
|
52
|
+
assert_equal upgrade(old), new
|
53
|
+
|
54
|
+
old = %{
|
55
|
+
UserInterface = GraphQL::InterfaceType.define do
|
56
|
+
name "User"
|
57
|
+
end
|
58
|
+
}
|
59
|
+
new = %{
|
60
|
+
class UserInterface < BaseInterface
|
61
|
+
graphql_name "User"
|
62
|
+
end
|
63
|
+
}
|
64
|
+
assert_equal upgrade(old), new
|
65
|
+
|
66
|
+
old = %{
|
67
|
+
UserInterface = GraphQL::InterfaceType.define do
|
68
|
+
name "User"
|
69
|
+
end
|
70
|
+
}
|
71
|
+
new = %{
|
72
|
+
class UserInterface < BaseInterface
|
73
|
+
graphql_name "User"
|
74
|
+
end
|
75
|
+
}
|
76
|
+
assert_equal upgrade(old), new
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
describe 'definition' do
|
81
|
+
it 'upgrades the .define into class based definition' do
|
82
|
+
old = %{UserType = GraphQL::ObjectType.define do}
|
83
|
+
new = %{class UserType < BaseObject}
|
84
|
+
assert_equal upgrade(old), new
|
85
|
+
|
86
|
+
old = %{UserInterface = GraphQL::InterfaceType.define do}
|
87
|
+
new = %{class UserInterface < BaseInterface}
|
88
|
+
assert_equal upgrade(old), new
|
89
|
+
|
90
|
+
old = %{UserUnion = GraphQL::UnionType.define do}
|
91
|
+
new = %{class UserUnion < BaseUnion}
|
92
|
+
assert_equal upgrade(old), new
|
93
|
+
|
94
|
+
old = %{UserEnum = GraphQL::EnumType.define do}
|
95
|
+
new = %{class UserEnum < BaseEnum}
|
96
|
+
assert_equal upgrade(old), new
|
97
|
+
end
|
98
|
+
|
99
|
+
it 'upgrades including the module' do
|
100
|
+
old = %{Module::UserType = GraphQL::ObjectType.define do}
|
101
|
+
new = %{class Module::UserType < BaseObject}
|
102
|
+
assert_equal upgrade(old), new
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe 'fields' do
|
107
|
+
it 'upgrades to the new definition' do
|
108
|
+
old = %{field :name, !types.String}
|
109
|
+
new = %{field :name, String, null: false}
|
110
|
+
assert_equal upgrade(old), new
|
111
|
+
|
112
|
+
old = %{field :name, !types.String, "description", method: :name}
|
113
|
+
new = %{field :name, String, "description", method: :name, null: false}
|
114
|
+
assert_equal upgrade(old), new
|
115
|
+
|
116
|
+
old = %{field :name, -> { !types.String }}
|
117
|
+
new = %{field :name, -> { String }, null: false}
|
118
|
+
assert_equal upgrade(old), new
|
119
|
+
|
120
|
+
old = %{connection :name, Name.connection_type, "names"}
|
121
|
+
new = %{field :name, Name.connection_type, "names", null: false, connection: true}
|
122
|
+
assert_equal upgrade(old), new
|
123
|
+
|
124
|
+
old = %{connection :name, !Name.connection_type, "names"}
|
125
|
+
new = %{field :name, Name.connection_type, "names", null: false, connection: true}
|
126
|
+
assert_equal upgrade(old), new
|
127
|
+
|
128
|
+
old = %{field :names, types[types.String]}
|
129
|
+
new = %{field :names, [String], null: false}
|
130
|
+
assert_equal upgrade(old), new
|
131
|
+
|
132
|
+
old = %{field :names, !types[types.String]}
|
133
|
+
new = %{field :names, [String], null: false}
|
134
|
+
assert_equal upgrade(old), new
|
135
|
+
|
136
|
+
old = %{
|
137
|
+
field :name, types.String do
|
138
|
+
end
|
139
|
+
}
|
140
|
+
new = %{
|
141
|
+
field :name, String, null: false do
|
142
|
+
end
|
143
|
+
}
|
144
|
+
assert_equal upgrade(old), new
|
145
|
+
|
146
|
+
old = %{
|
147
|
+
field :name, !types.String do
|
148
|
+
end
|
149
|
+
}
|
150
|
+
new = %{
|
151
|
+
field :name, String, null: false do
|
152
|
+
end
|
153
|
+
}
|
154
|
+
assert_equal upgrade(old), new
|
155
|
+
|
156
|
+
old = %{
|
157
|
+
field :name, -> { !types.String } do
|
158
|
+
end
|
159
|
+
}
|
160
|
+
new = %{
|
161
|
+
field :name, -> { String }, null: false do
|
162
|
+
end
|
163
|
+
}
|
164
|
+
assert_equal upgrade(old), new
|
165
|
+
|
166
|
+
old = %{
|
167
|
+
field :name do
|
168
|
+
type -> { String }
|
169
|
+
end
|
170
|
+
}
|
171
|
+
new = %{
|
172
|
+
field :name, -> { String }, null: false do
|
173
|
+
end
|
174
|
+
}
|
175
|
+
assert_equal upgrade(old), new
|
176
|
+
|
177
|
+
old = %{
|
178
|
+
field :name do
|
179
|
+
type !String
|
180
|
+
end
|
181
|
+
}
|
182
|
+
new = %{
|
183
|
+
field :name, String, null: false do
|
184
|
+
end
|
185
|
+
}
|
186
|
+
assert_equal upgrade(old), new
|
187
|
+
|
188
|
+
old = %{
|
189
|
+
field :name, -> { types.String },
|
190
|
+
"newline description" do
|
191
|
+
end
|
192
|
+
}
|
193
|
+
new = %{
|
194
|
+
field :name, -> { String }, "newline description", null: false do
|
195
|
+
end
|
196
|
+
}
|
197
|
+
assert_equal upgrade(old), new
|
198
|
+
|
199
|
+
old = %{
|
200
|
+
field :name, -> { !types.String },
|
201
|
+
"newline description" do
|
202
|
+
end
|
203
|
+
}
|
204
|
+
new = %{
|
205
|
+
field :name, -> { String }, "newline description", null: false do
|
206
|
+
end
|
207
|
+
}
|
208
|
+
assert_equal upgrade(old), new
|
209
|
+
|
210
|
+
old = %{
|
211
|
+
field :name, String,
|
212
|
+
field: SomeField do
|
213
|
+
end
|
214
|
+
}
|
215
|
+
new = %{
|
216
|
+
field :name, String, field: SomeField, null: false do
|
217
|
+
end
|
218
|
+
}
|
219
|
+
assert_equal upgrade(old), new
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "spec_helper"
|
4
|
+
require './lib/graphql/upgrader/schema.rb'
|
5
|
+
|
6
|
+
describe GraphQL::Upgrader::Schema do
|
7
|
+
def upgrade(old)
|
8
|
+
GraphQL::Upgrader::Schema.new(old).upgrade
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'updates the definition' do
|
12
|
+
old = %{
|
13
|
+
StarWarsSchema = GraphQL::Schema.define do
|
14
|
+
end
|
15
|
+
}
|
16
|
+
new = %{
|
17
|
+
class StarWarsSchema < GraphQL::Schema
|
18
|
+
end
|
19
|
+
}
|
20
|
+
|
21
|
+
assert_equal upgrade(old), new
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'updates the resolve_type' do
|
25
|
+
old = %{
|
26
|
+
StarWarsSchema = GraphQL::Schema.define do
|
27
|
+
resolve_type ->(obj, ctx) do
|
28
|
+
nil
|
29
|
+
end
|
30
|
+
end
|
31
|
+
}
|
32
|
+
new = %{
|
33
|
+
class StarWarsSchema < GraphQL::Schema
|
34
|
+
def self.resolve_type(obj, ctx)
|
35
|
+
nil
|
36
|
+
end
|
37
|
+
end
|
38
|
+
}
|
39
|
+
|
40
|
+
assert_equal upgrade(old), new
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'updates the object_from_id' do
|
44
|
+
old = %{
|
45
|
+
StarWarsSchema = GraphQL::Schema.define do
|
46
|
+
object_from_id ->(id, ctx) do
|
47
|
+
nil
|
48
|
+
end
|
49
|
+
end
|
50
|
+
}
|
51
|
+
new = %{
|
52
|
+
class StarWarsSchema < GraphQL::Schema
|
53
|
+
def self.object_from_id(id, ctx)
|
54
|
+
nil
|
55
|
+
end
|
56
|
+
end
|
57
|
+
}
|
58
|
+
|
59
|
+
assert_equal upgrade(old), new
|
60
|
+
end
|
61
|
+
|
62
|
+
it 'updates the id_from_object' do
|
63
|
+
old = %{
|
64
|
+
StarWarsSchema = GraphQL::Schema.define do
|
65
|
+
id_from_object -> (object, type_definition, ctx) do
|
66
|
+
nil
|
67
|
+
end
|
68
|
+
end
|
69
|
+
}
|
70
|
+
new = %{
|
71
|
+
class StarWarsSchema < GraphQL::Schema
|
72
|
+
def self.id_from_object(object, type_definition, ctx)
|
73
|
+
nil
|
74
|
+
end
|
75
|
+
end
|
76
|
+
}
|
77
|
+
|
78
|
+
assert_equal upgrade(old), new
|
79
|
+
end
|
80
|
+
|
81
|
+
|
82
|
+
end
|
@@ -149,6 +149,15 @@ module Dummy
|
|
149
149
|
field :cheese, CheeseType
|
150
150
|
end
|
151
151
|
|
152
|
+
TracingScalarType = GraphQL::ObjectType.define do
|
153
|
+
name "TracingScalar"
|
154
|
+
description "An object which has traced scalars"
|
155
|
+
|
156
|
+
field :traceNil, types.Int
|
157
|
+
field :traceFalse, types.Int, trace: false
|
158
|
+
field :traceTrue, types.Int, trace: true
|
159
|
+
end
|
160
|
+
|
152
161
|
DairyProductUnion = GraphQL::UnionType.define do
|
153
162
|
name "DairyProduct"
|
154
163
|
description "Kinds of food made from milk"
|
@@ -372,6 +381,16 @@ module Dummy
|
|
372
381
|
resolve ->(t, a, c) { OpenStruct.new(cheese: nil) }
|
373
382
|
end
|
374
383
|
|
384
|
+
field :tracingScalar, TracingScalarType do
|
385
|
+
resolve ->(o, a, c) do
|
386
|
+
OpenStruct.new(
|
387
|
+
traceNil: 2,
|
388
|
+
traceFalse: 3,
|
389
|
+
tracetrue: 5,
|
390
|
+
)
|
391
|
+
end
|
392
|
+
end
|
393
|
+
|
375
394
|
field :deepNonNull, !DeepNonNullType do
|
376
395
|
resolve ->(o, a, c) { :deepNonNull }
|
377
396
|
end
|
data/spec/support/jazz.rb
CHANGED
@@ -110,7 +110,7 @@ module Jazz
|
|
110
110
|
class GloballyIdentifiableType < BaseInterface
|
111
111
|
description "A fetchable object in the system"
|
112
112
|
field :id, ID, "A unique identifier for this object", null: false
|
113
|
-
field :
|
113
|
+
field :upcased_id, ID, null: false, upcase: true, method: :id
|
114
114
|
|
115
115
|
module Implementation
|
116
116
|
def id
|
@@ -137,7 +137,7 @@ module Jazz
|
|
137
137
|
# test field inheritance
|
138
138
|
class ObjectWithUpcasedName < BaseObject
|
139
139
|
# Test extra arguments:
|
140
|
-
field :
|
140
|
+
field :upcase_name, String, null: false, upcase: true
|
141
141
|
|
142
142
|
def upcase_name
|
143
143
|
@object.name # upcase is applied by the superclass
|
@@ -198,7 +198,7 @@ module Jazz
|
|
198
198
|
implements NamedEntity
|
199
199
|
description "Someone who plays an instrument"
|
200
200
|
field :instrument, InstrumentType, null: false
|
201
|
-
field :
|
201
|
+
field :favorite_key, Key, null: true
|
202
202
|
end
|
203
203
|
|
204
204
|
LegacyInputType = GraphQL::InputObjectType.define do
|
@@ -207,9 +207,9 @@ module Jazz
|
|
207
207
|
end
|
208
208
|
|
209
209
|
class InspectableInput < GraphQL::Schema::InputObject
|
210
|
-
argument :
|
211
|
-
argument :
|
212
|
-
argument :
|
210
|
+
argument :string_value, String, required: true
|
211
|
+
argument :nested_input, InspectableInput, required: false
|
212
|
+
argument :legacy_input, LegacyInputType, required: false
|
213
213
|
def helper_method
|
214
214
|
[
|
215
215
|
# Context is available in the InputObject
|
@@ -226,8 +226,8 @@ module Jazz
|
|
226
226
|
|
227
227
|
class InspectableKey < BaseObject
|
228
228
|
field :root, String, null: false
|
229
|
-
field :
|
230
|
-
field :
|
229
|
+
field :is_sharp, Boolean, null: false, method: :sharp
|
230
|
+
field :is_flat, Boolean, null: false, method: :flat
|
231
231
|
end
|
232
232
|
|
233
233
|
class PerformingAct < GraphQL::Schema::Union
|
@@ -246,20 +246,20 @@ module Jazz
|
|
246
246
|
class Query < BaseObject
|
247
247
|
field :ensembles, [Ensemble], null: false
|
248
248
|
field :find, GloballyIdentifiableType, null: true do
|
249
|
-
argument :id, ID, required: true
|
249
|
+
argument :id, ID, required: true
|
250
250
|
end
|
251
251
|
field :instruments, [InstrumentType], null: false do
|
252
252
|
argument :family, Family, required: false
|
253
253
|
end
|
254
|
-
field :
|
255
|
-
argument :input, InspectableInput, required: true
|
254
|
+
field :inspect_input, [String], null: false do
|
255
|
+
argument :input, InspectableInput, required: true, custom: :ok
|
256
256
|
end
|
257
|
-
field :
|
257
|
+
field :inspect_key, InspectableKey, null: false do
|
258
258
|
argument :key, Key, required: true
|
259
259
|
end
|
260
260
|
field :nowPlaying, PerformingAct, null: false, resolve: ->(o, a, c) { Models.data["Ensemble"].first }
|
261
261
|
# For asserting that the object is initialized once:
|
262
|
-
field :
|
262
|
+
field :object_id, Integer, null: false
|
263
263
|
|
264
264
|
def ensembles
|
265
265
|
Models.data["Ensemble"]
|
@@ -304,7 +304,7 @@ module Jazz
|
|
304
304
|
end
|
305
305
|
|
306
306
|
class Mutation < BaseObject
|
307
|
-
field :
|
307
|
+
field :add_ensemble, Ensemble, null: false do
|
308
308
|
argument :input, EnsembleInput, required: true
|
309
309
|
end
|
310
310
|
|
@@ -18,13 +18,12 @@ module StarWars
|
|
18
18
|
'Executor',
|
19
19
|
]
|
20
20
|
|
21
|
-
# ActiveRecord::Base.logger = Logger.new(STDOUT)
|
22
21
|
`rm -f ./_test_.db`
|
23
22
|
# Set up "Bases" in ActiveRecord
|
24
23
|
|
25
24
|
if jruby?
|
26
25
|
ActiveRecord::Base.establish_connection(adapter: "jdbcsqlite3", database: "./_test_.db")
|
27
|
-
Sequel.connect('jdbc:sqlite:./_test_.db')
|
26
|
+
DB = Sequel.connect('jdbc:sqlite:./_test_.db')
|
28
27
|
elsif ENV['DATABASE'] == 'POSTGRESQL'
|
29
28
|
ActiveRecord::Base.establish_connection(
|
30
29
|
adapter: "postgresql",
|
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: 1.8.0.
|
4
|
+
version: 1.8.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: benchmark-ips
|
@@ -372,6 +372,7 @@ files:
|
|
372
372
|
- lib/graphql/execution/directive_checks.rb
|
373
373
|
- lib/graphql/execution/execute.rb
|
374
374
|
- lib/graphql/execution/flatten.rb
|
375
|
+
- lib/graphql/execution/instrumentation.rb
|
375
376
|
- lib/graphql/execution/lazy.rb
|
376
377
|
- lib/graphql/execution/lazy/lazy_method_map.rb
|
377
378
|
- lib/graphql/execution/lazy/resolve.rb
|
@@ -419,6 +420,7 @@ files:
|
|
419
420
|
- lib/graphql/language.rb
|
420
421
|
- lib/graphql/language/comments.rb
|
421
422
|
- lib/graphql/language/definition_slice.rb
|
423
|
+
- lib/graphql/language/document_from_schema_definition.rb
|
422
424
|
- lib/graphql/language/generation.rb
|
423
425
|
- lib/graphql/language/lexer.rb
|
424
426
|
- lib/graphql/language/lexer.rl
|
@@ -449,6 +451,7 @@ files:
|
|
449
451
|
- lib/graphql/query/validation_pipeline.rb
|
450
452
|
- lib/graphql/query/variable_validation_error.rb
|
451
453
|
- lib/graphql/query/variables.rb
|
454
|
+
- lib/graphql/railtie.rb
|
452
455
|
- lib/graphql/rake_task.rb
|
453
456
|
- lib/graphql/rake_task/validate.rb
|
454
457
|
- lib/graphql/relay.rb
|
@@ -552,6 +555,7 @@ files:
|
|
552
555
|
- lib/graphql/tracing.rb
|
553
556
|
- lib/graphql/tracing/active_support_notifications_tracing.rb
|
554
557
|
- lib/graphql/tracing/appsignal_tracing.rb
|
558
|
+
- lib/graphql/tracing/data_dog_tracing.rb
|
555
559
|
- lib/graphql/tracing/new_relic_tracing.rb
|
556
560
|
- lib/graphql/tracing/platform_tracing.rb
|
557
561
|
- lib/graphql/tracing/scout_tracing.rb
|
@@ -559,6 +563,8 @@ files:
|
|
559
563
|
- lib/graphql/type_kinds.rb
|
560
564
|
- lib/graphql/union_type.rb
|
561
565
|
- lib/graphql/unresolved_type_error.rb
|
566
|
+
- lib/graphql/upgrader/member.rb
|
567
|
+
- lib/graphql/upgrader/schema.rb
|
562
568
|
- lib/graphql/version.rb
|
563
569
|
- readme.md
|
564
570
|
- spec/dummy/Gemfile
|
@@ -891,6 +897,7 @@ files:
|
|
891
897
|
- spec/graphql/directive_spec.rb
|
892
898
|
- spec/graphql/enum_type_spec.rb
|
893
899
|
- spec/graphql/execution/execute_spec.rb
|
900
|
+
- spec/graphql/execution/instrumentation_spec.rb
|
894
901
|
- spec/graphql/execution/lazy/lazy_method_map_spec.rb
|
895
902
|
- spec/graphql/execution/lazy_spec.rb
|
896
903
|
- spec/graphql/execution/multiplex_spec.rb
|
@@ -912,6 +919,7 @@ files:
|
|
912
919
|
- spec/graphql/introspection/type_by_name_field_spec.rb
|
913
920
|
- spec/graphql/introspection/type_type_spec.rb
|
914
921
|
- spec/graphql/language/definition_slice_spec.rb
|
922
|
+
- spec/graphql/language/document_from_schema_definition_spec.rb
|
915
923
|
- spec/graphql/language/equality_spec.rb
|
916
924
|
- spec/graphql/language/generation_spec.rb
|
917
925
|
- spec/graphql/language/lexer_spec.rb
|
@@ -947,6 +955,7 @@ files:
|
|
947
955
|
- spec/graphql/schema/enum_spec.rb
|
948
956
|
- spec/graphql/schema/field_spec.rb
|
949
957
|
- spec/graphql/schema/input_object_spec.rb
|
958
|
+
- spec/graphql/schema/instrumentation_spec.rb
|
950
959
|
- spec/graphql/schema/interface_spec.rb
|
951
960
|
- spec/graphql/schema/loader_spec.rb
|
952
961
|
- spec/graphql/schema/middleware_chain_spec.rb
|
@@ -997,6 +1006,8 @@ files:
|
|
997
1006
|
- spec/graphql/tracing/scout_tracing_spec.rb
|
998
1007
|
- spec/graphql/tracing_spec.rb
|
999
1008
|
- spec/graphql/union_type_spec.rb
|
1009
|
+
- spec/graphql/upgrader/member_spec.rb
|
1010
|
+
- spec/graphql/upgrader/schema_spec.rb
|
1000
1011
|
- spec/rails_dependency_sanity_spec.rb
|
1001
1012
|
- spec/spec_helper.rb
|
1002
1013
|
- spec/support/base_generator_test.rb
|
@@ -1367,6 +1378,7 @@ test_files:
|
|
1367
1378
|
- spec/graphql/directive_spec.rb
|
1368
1379
|
- spec/graphql/enum_type_spec.rb
|
1369
1380
|
- spec/graphql/execution/execute_spec.rb
|
1381
|
+
- spec/graphql/execution/instrumentation_spec.rb
|
1370
1382
|
- spec/graphql/execution/lazy/lazy_method_map_spec.rb
|
1371
1383
|
- spec/graphql/execution/lazy_spec.rb
|
1372
1384
|
- spec/graphql/execution/multiplex_spec.rb
|
@@ -1388,6 +1400,7 @@ test_files:
|
|
1388
1400
|
- spec/graphql/introspection/type_by_name_field_spec.rb
|
1389
1401
|
- spec/graphql/introspection/type_type_spec.rb
|
1390
1402
|
- spec/graphql/language/definition_slice_spec.rb
|
1403
|
+
- spec/graphql/language/document_from_schema_definition_spec.rb
|
1391
1404
|
- spec/graphql/language/equality_spec.rb
|
1392
1405
|
- spec/graphql/language/generation_spec.rb
|
1393
1406
|
- spec/graphql/language/lexer_spec.rb
|
@@ -1423,6 +1436,7 @@ test_files:
|
|
1423
1436
|
- spec/graphql/schema/enum_spec.rb
|
1424
1437
|
- spec/graphql/schema/field_spec.rb
|
1425
1438
|
- spec/graphql/schema/input_object_spec.rb
|
1439
|
+
- spec/graphql/schema/instrumentation_spec.rb
|
1426
1440
|
- spec/graphql/schema/interface_spec.rb
|
1427
1441
|
- spec/graphql/schema/loader_spec.rb
|
1428
1442
|
- spec/graphql/schema/middleware_chain_spec.rb
|
@@ -1473,6 +1487,8 @@ test_files:
|
|
1473
1487
|
- spec/graphql/tracing/scout_tracing_spec.rb
|
1474
1488
|
- spec/graphql/tracing_spec.rb
|
1475
1489
|
- spec/graphql/union_type_spec.rb
|
1490
|
+
- spec/graphql/upgrader/member_spec.rb
|
1491
|
+
- spec/graphql/upgrader/schema_spec.rb
|
1476
1492
|
- spec/rails_dependency_sanity_spec.rb
|
1477
1493
|
- spec/spec_helper.rb
|
1478
1494
|
- spec/support/base_generator_test.rb
|