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 +4 -4
- data/lib/graphql/client/query_result.rb +19 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38821354e52cbe9c7bb5ff211fad0e9b32f1c94b
|
4
|
+
data.tar.gz: 83fee5c0db5b3e13485f728259608735627e02cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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|
|