graphql_preload_queries 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/config/initializers/add_mutation_helper.rb +1 -0
- data/config/initializers/add_query_helper.rb +1 -0
- data/lib/graphql_preload_queries/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: 89226168aa382eb59c56754b96a4eaa64c51c5f06fc6fd8d831b7795d84adf0e
|
4
|
+
data.tar.gz: b29ec85aa619a1f7412944d6f50388f68c9b196cc5e8607bc22fd163f3a64ed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42df9aacf5b59d341fc5498a61890a1ecd5c76713179c94b81696084af7d9d4f52abdd105c26a04775aa6b8199f86398841bf230127df711ffceef386752f7f9
|
7
|
+
data.tar.gz: cded97146bc935064f7dcaa94034deffd06adf1b6cf3c2daaacf746fb11eef542b261debd505ccb8963ec3b67f60cf7386d4829aeaa13feaed024786fa7ec04e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -9,6 +9,7 @@ Rails.application.config.to_prepare do
|
|
9
9
|
# @param collection (ActiveCollection)
|
10
10
|
# @param type_klass (GQL TypeClass)
|
11
11
|
def include_gql_preloads(gql_result_key, collection, type_klass = nil)
|
12
|
+
gql_result_key = GraphQL::Schema::Member::BuildType.camelize(gql_result_key.to_s)
|
12
13
|
type_klass ||= preload_type_klass(gql_result_key.to_s)
|
13
14
|
klass = GraphqlPreloadQueries::Extensions::Preload
|
14
15
|
ast_node = preload_find_node(gql_result_key)
|
@@ -10,6 +10,7 @@ Rails.application.config.to_prepare do
|
|
10
10
|
# @param collection (ActiveCollection)
|
11
11
|
# @param type_klass (GQL TypeClass, default: calculates using return type)
|
12
12
|
def include_gql_preloads(gql_result_key, collection, type_klass = nil)
|
13
|
+
gql_result_key = GraphQL::Schema::Member::BuildType.camelize(gql_result_key.to_s)
|
13
14
|
type_klass ||= preload_type_klass(gql_result_key.to_s)
|
14
15
|
klass = GraphqlPreloadQueries::Extensions::Preload
|
15
16
|
ast_node = preload_find_node(gql_result_key)
|