graphiform 0.2.3 → 0.2.4

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: e55cfe2745a2343ff704c8fa0d6daaf8fde9a24c0d91e78fd938d0c143f74f6e
4
- data.tar.gz: f4245107d1b61418d0a2e1995f845a42d56f8e45a33efa6cfd57f039795c587a
3
+ metadata.gz: ad1663df91a2cb043ecca554ce73964f977b6a5af2878334df72105177bddb04
4
+ data.tar.gz: f70a256ef76ce3ba4d91d25d2194bc1481d3c89e601a1b48a9f1ef6fe09bafd4
5
5
  SHA512:
6
- metadata.gz: 8e09ad27673bd942cf6a761a090451f4dab2ebe7a09dfc509fba0311ca412b2ddbdb39cd83dddc237a19fbe2c001b227244ffac601c9301e41d18468f55bd5bd
7
- data.tar.gz: beb387c2994ec3e01c16441e358e6e49c3cb14c6b47e3a5ee2ec103fce48b7c55b57350bb3d21e11b021bd6210852af51f9c135ccb9dd7074395cdd8b1e5b4fb
6
+ metadata.gz: 2e77bbf7632faeb956acd2f7aa067428b7d2375f3c96b1ca71af95bd1d5ac12b5a8aa2d4229a9718c5dce7b566cd077f1018c84b5a251969a6a6579654cf07bb
7
+ data.tar.gz: 8ecfa9e57aa9b7692236114ff695aa5fad197a7c608127e93fca500b1a94a7ff7156cd093f1ac2a5d28438f93b86e4d1cdda4deb61186a5802212df216434d29
@@ -136,7 +136,7 @@ module Graphiform
136
136
  Helpers.get_const_or_create(demodulized_name, ::Resolvers::Queries) do
137
137
  local_graphql_type = graphql_type
138
138
  Class.new(graphql_base_resolver) do
139
- type local_graphql_type, null: false
139
+ type local_graphql_type, null: true
140
140
 
141
141
  def base_resolve(**args)
142
142
  @value = model.all
@@ -161,9 +161,9 @@ module Graphiform
161
161
  end
162
162
  end
163
163
 
164
- def graphql_create_resolver(method_name, resolver_type = graphql_type, read_prepare: nil, read_resolve: nil, **)
164
+ def graphql_create_resolver(method_name, resolver_type = graphql_type, read_prepare: nil, read_resolve: nil, null: true, **)
165
165
  Class.new(graphql_base_resolver) do
166
- type resolver_type, null: false
166
+ type resolver_type, null: null
167
167
 
168
168
  define_method :base_resolve do |**args|
169
169
  @value = object
@@ -265,7 +265,8 @@ module Graphiform
265
265
  association_def.name,
266
266
  klass.graphql_connection,
267
267
  read_prepare: read_prepare,
268
- read_resolve: read_resolve
268
+ read_resolve: read_resolve,
269
+ null: false
269
270
  ),
270
271
  false,
271
272
  **options
@@ -279,7 +280,8 @@ module Graphiform
279
280
  association_def.name,
280
281
  [klass.graphql_type],
281
282
  read_prepare: read_prepare,
282
- read_resolve: read_resolve
283
+ read_resolve: read_resolve,
284
+ null: false
283
285
  )
284
286
  else
285
287
  klass.graphql_type
@@ -1,3 +1,3 @@
1
1
  module Graphiform
2
- VERSION = '0.2.3'.freeze
2
+ VERSION = '0.2.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - jayce.pulsipher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-28 00:00:00.000000000 Z
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord