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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2033097c8239ec615569f2e51837e68b0300e46c8983a2d4d9db11d98d9ceea8
4
- data.tar.gz: 1015a0b2bbd114ecc5b8de4c57b42c1591494e0c64b53595a2177d4886d18555
3
+ metadata.gz: 89226168aa382eb59c56754b96a4eaa64c51c5f06fc6fd8d831b7795d84adf0e
4
+ data.tar.gz: b29ec85aa619a1f7412944d6f50388f68c9b196cc5e8607bc22fd163f3a64ed1
5
5
  SHA512:
6
- metadata.gz: 04df1b49aae6f5978bafb22cfa8740d62ee70eb87963617fcd8b5c8766ee57d0d49a1633d53c5211aaa1f24f76513683b56f2f148f8ff732532fbd7722f6a474
7
- data.tar.gz: 33432e16d0465307533537cdd1e438b6afafe515a0ac6c06933c828e29905eb697aa7e85d3a8ef1d73b82a861f38d4617bbc49df407464b41f6e8ae5c0eeca6c
6
+ metadata.gz: 42df9aacf5b59d341fc5498a61890a1ecd5c76713179c94b81696084af7d9d4f52abdd105c26a04775aa6b8199f86398841bf230127df711ffceef386752f7f9
7
+ data.tar.gz: cded97146bc935064f7dcaa94034deffd06adf1b6cf3c2daaacf746fb11eef542b261debd505ccb8963ec3b67f60cf7386d4829aeaa13feaed024786fa7ec04e
@@ -1,3 +1,6 @@
1
+ ## 0.3.1 (22-01-2021)
2
+ - feat: auto camelize key for queries and mutations
3
+
1
4
  ## 0.3 (22-01-2021)
2
5
  - feat: add debug mode
3
6
  ```GraphqlPreloadQueries::DEBUG = true```
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql_preload_queries (0.3)
4
+ graphql_preload_queries (0.3.1)
5
5
  graphql
6
6
  rails
7
7
 
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GraphqlPreloadQueries
4
- VERSION = '0.3'
4
+ VERSION = '0.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql_preload_queries
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - owen2345