graphql-client 0.8.2 → 0.8.3

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
  SHA1:
3
- metadata.gz: f25cf31f15a80b4f310b6cbc8cba4f536ae6b8ef
4
- data.tar.gz: 2481de14f0b278a24a17771de111d661589d004e
3
+ metadata.gz: 38821354e52cbe9c7bb5ff211fad0e9b32f1c94b
4
+ data.tar.gz: 83fee5c0db5b3e13485f728259608735627e02cd
5
5
  SHA512:
6
- metadata.gz: '08cccc2e230f043b4460dcc2bc352ce5c0e6510709663971ac517da36f390668beed64c9bb702aef5d6e2bea8a5ba97a67cc5ae36715e2c49af3c124328226f7'
7
- data.tar.gz: 8a311fdf37db44780cbc739e870b4ca706a2884d37f07647e152d4384d869d92051ea6d6513422376bcb77fdb7bda0cf51468f082cad93d5e342ce870215716a
6
+ metadata.gz: a2146cdcffd5521ed1e5ddb5b03630256f9b34fb706c28e71c2629b0b0c7bdea82e2d524e1be936b013d1d33684a2fc362324b3ff5801b974ba4d9eedcc2586c
7
+ data.tar.gz: 1775466ca5c72a4450fe592d1311fe0f856d026fa6c18d41cf8a3c031e920f01aff19f297d1497dff959abce841fb2dbc9d1aa1ea3c6d34ac533bcd2797d5ae6
@@ -32,24 +32,25 @@ module GraphQL
32
32
  ScalarWrapper.new(type)
33
33
  when GraphQL::EnumType
34
34
  EnumWrapper.new(type)
35
- when GraphQL::UnionType
36
- types = {}
37
-
38
- node.selections.each do |selection|
39
- case selection
40
- when Language::Nodes::InlineFragment
41
- selection_type = source_definition.document_types[selection]
42
- selection_wrapper = wrap(source_definition, selection, selection_type, name: name)
43
- if types[selection_type]
44
- types[selection_type.name] |= selection_wrapper
45
- else
46
- types[selection_type.name] = selection_wrapper
47
- end
48
- end
49
- end
50
-
51
- UnionWrapper.new(types)
52
- when GraphQL::ObjectType, GraphQL::InterfaceType
35
+ # when GraphQL::UnionType
36
+ # types = {}
37
+ #
38
+ # node.selections.each do |selection|
39
+ # case selection
40
+ # when Language::Nodes::InlineFragment
41
+ # selection_type = source_definition.document_types[selection]
42
+ # selection_wrapper = wrap(source_definition, selection, selection_type, name: name)
43
+ # if types[selection_type]
44
+ # p [:merge, selection_type]
45
+ # types[selection_type.name] |= selection_wrapper
46
+ # else
47
+ # types[selection_type.name] = selection_wrapper
48
+ # end
49
+ # end
50
+ # end
51
+ #
52
+ # UnionWrapper.new(types)
53
+ when GraphQL::ObjectType, GraphQL::InterfaceType, GraphQL::UnionType
53
54
  fields = {}
54
55
 
55
56
  node.selections.each do |selection|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub