activecube-graphql 0.1.5 → 0.1.6
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/activecube/graphql/parse_tree.rb +5 -2
- data/lib/activecube/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: d530166b53468ef6619823980eb04ab18a43c0cf73f9732376b3b26cf8898917
|
|
4
|
+
data.tar.gz: 060b0a82a4081dd108835e910b260de8c33c7ed7c3d112e3a28202eec940f8a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ce9b0b5829cafa7f381a454113afe26a03e2a39699bd21be70e6b7b9151fdd75dd3780c08b120c70f710c174c6213ef51aa946228a9a5d56a857e259f9e6b15
|
|
7
|
+
data.tar.gz: 104409450638839f1b50e6e7a03f3b1baff1af0402d015250fa48d1aab2e2039ce77a19b532527dad098d9e0cc3723d728e90d78dab4bc9163e89d0b433f13c9
|
|
@@ -36,14 +36,17 @@ module Activecube
|
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
@children = context_node.typed_children.values.map(&:values).flatten.
|
|
40
|
-
select{|child| child.name!=TYPENAME}.
|
|
39
|
+
@children = context_node.typed_children.values.map(&:values).flatten.uniq(&:name).
|
|
40
|
+
select{|child| child.name!=TYPENAME || union? }.
|
|
41
41
|
collect do |child|
|
|
42
42
|
Element.new cube, child, self
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
+
def union?
|
|
48
|
+
context_node.return_type.kind_of? GraphQL::UnionType
|
|
49
|
+
end
|
|
47
50
|
|
|
48
51
|
def append_query query
|
|
49
52
|
if parent
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activecube-graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aleksey Studnev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activecube
|