graphql 2.0.30 → 2.0.31
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/graphql/execution/interpreter/runtime.rb +12 -3
- data/lib/graphql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1e33fba4f613caa1092e3b95f8020bfbb60b357853a3d3d7f793acd4f673a38
|
|
4
|
+
data.tar.gz: 1b5e3157fc10c72fe4b48b815402aa2bca224b90a2d26e441a18f56731b2f238
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b91433fccd85d5833fdb3713a7003a8ddb060e57c4086685044cab6403f4efe4d4057b8526ddc312bd5e09c3adb0fcd276bb694aa37dced7374ae774f55f5ca
|
|
7
|
+
data.tar.gz: '09314d4624c7364c6e06e14b2fa9289578cf544781038e7087ca6be81eb72a8718295025965df56c1aa59a1fb447eda7cb5d2a89cb17b9d05f433cf76860c65c'
|
|
@@ -344,17 +344,26 @@ module GraphQL
|
|
|
344
344
|
type_defn = schema.get_type(node.type.name, context)
|
|
345
345
|
|
|
346
346
|
if query.warden.possible_types(type_defn).include?(owner_type)
|
|
347
|
-
gather_selections(owner_object, owner_type, node.selections, selections_to_run, next_selections)
|
|
347
|
+
result = gather_selections(owner_object, owner_type, node.selections, selections_to_run, next_selections)
|
|
348
|
+
if !result.equal?(next_selections)
|
|
349
|
+
selections_to_run = result
|
|
350
|
+
end
|
|
348
351
|
end
|
|
349
352
|
else
|
|
350
353
|
# it's an untyped fragment, definitely continue
|
|
351
|
-
gather_selections(owner_object, owner_type, node.selections, selections_to_run, next_selections)
|
|
354
|
+
result = gather_selections(owner_object, owner_type, node.selections, selections_to_run, next_selections)
|
|
355
|
+
if !result.equal?(next_selections)
|
|
356
|
+
selections_to_run = result
|
|
357
|
+
end
|
|
352
358
|
end
|
|
353
359
|
when GraphQL::Language::Nodes::FragmentSpread
|
|
354
360
|
fragment_def = query.fragments[node.name]
|
|
355
361
|
type_defn = query.get_type(fragment_def.type.name)
|
|
356
362
|
if query.warden.possible_types(type_defn).include?(owner_type)
|
|
357
|
-
gather_selections(owner_object, owner_type, fragment_def.selections, selections_to_run, next_selections)
|
|
363
|
+
result = gather_selections(owner_object, owner_type, fragment_def.selections, selections_to_run, next_selections)
|
|
364
|
+
if !result.equal?(next_selections)
|
|
365
|
+
selections_to_run = result
|
|
366
|
+
end
|
|
358
367
|
end
|
|
359
368
|
else
|
|
360
369
|
raise "Invariant: unexpected selection class: #{node.class}"
|
data/lib/graphql/version.rb
CHANGED
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.0.
|
|
4
|
+
version: 2.0.31
|
|
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-06-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|