graphiti_graphql 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/graphiti_graphql/schema.rb +5 -1
- data/lib/graphiti_graphql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4280e5808da769052de5faf957ad7b7e6b01ee6d5ae7ccd4dd2be210e250da97
|
4
|
+
data.tar.gz: a40b2972d39e385fabab7c06ba64fd02a4b53c7b91c6aba4686b9805da12aae1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f15781ad3da2924d6315d0942a4d6dbdb11f2dd31dacd93a03076b3cbc853749d72f643a509da76ea90ebd2473ac60258ec44c65f9e70e83540855a0eabc1ac1
|
7
|
+
data.tar.gz: db48fd742bdb61b704af19bb2bcc254cb51190322708f8c435da4871609cb9019e41716d6d089dbd9b69e600b99160b51148c8dee5e6b4d5f6d414fd970e92d2
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphiti_graphql (0.1.
|
4
|
+
graphiti_graphql (0.1.10)
|
5
5
|
activesupport (>= 4.1)
|
6
6
|
graphiti (~> 1.3)
|
7
7
|
graphql (~> 1.12)
|
@@ -80,7 +80,7 @@ GEM
|
|
80
80
|
rainbow (3.0.0)
|
81
81
|
rake (10.5.0)
|
82
82
|
regexp_parser (2.0.3)
|
83
|
-
rexml (3.2.
|
83
|
+
rexml (3.2.5)
|
84
84
|
rspec (3.10.0)
|
85
85
|
rspec-core (~> 3.10.0)
|
86
86
|
rspec-expectations (~> 3.10.0)
|
@@ -95,10 +95,14 @@ module GraphitiGraphQL
|
|
95
95
|
query_class.graphql_name "Query"
|
96
96
|
query_class.field_class BaseField
|
97
97
|
|
98
|
-
|
98
|
+
# Ensure all types are generated, even if they aren't in a top-level Query
|
99
|
+
# We might now want to expose the query, but do want to federate the Type
|
100
|
+
graphiti_schema.resources.each do |resource|
|
99
101
|
next if resource.remote?
|
100
102
|
generate_type(resource)
|
103
|
+
end
|
101
104
|
|
105
|
+
get_entrypoints(entrypoint_resources).each do |resource|
|
102
106
|
add_index(query_class, resource)
|
103
107
|
add_show(query_class, resource)
|
104
108
|
end
|