graphql 2.0.30 → 2.0.31

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29e458d7502ad70d3edce8b8e40d4782fc5c8ef6b43c159a120b9704104a6097
4
- data.tar.gz: 8e4734645288bf1e4e24f05394c9bf9c52c6f8be6489b47843553b1c21b1fdd2
3
+ metadata.gz: b1e33fba4f613caa1092e3b95f8020bfbb60b357853a3d3d7f793acd4f673a38
4
+ data.tar.gz: 1b5e3157fc10c72fe4b48b815402aa2bca224b90a2d26e441a18f56731b2f238
5
5
  SHA512:
6
- metadata.gz: f65bab0e77b28b56ba0f333ffd14bc7b90c3e65f3142a65ed7c95893a49935fe98b6c5b039bac4f129612b2d82c5358bda23a3174a9558584e4c7b5810b3e394
7
- data.tar.gz: 90cb751caebff78ff5a80f58acfb91602f77e2697fe25e0f661fde9f4d3a299cb733fc29d844374132940f5a10463fe5fb80a4ea3100695e28a2470127eb083a
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}"
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "2.0.30"
3
+ VERSION = "2.0.31"
4
4
  end
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.30
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-05-09 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64