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 +4 -4
- data/lib/graphiform/core.rb +3 -3
- data/lib/graphiform/fields.rb +4 -2
- data/lib/graphiform/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: ad1663df91a2cb043ecca554ce73964f977b6a5af2878334df72105177bddb04
|
4
|
+
data.tar.gz: f70a256ef76ce3ba4d91d25d2194bc1481d3c89e601a1b48a9f1ef6fe09bafd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e77bbf7632faeb956acd2f7aa067428b7d2375f3c96b1ca71af95bd1d5ac12b5a8aa2d4229a9718c5dce7b566cd077f1018c84b5a251969a6a6579654cf07bb
|
7
|
+
data.tar.gz: 8ecfa9e57aa9b7692236114ff695aa5fad197a7c608127e93fca500b1a94a7ff7156cd093f1ac2a5d28438f93b86e4d1cdda4deb61186a5802212df216434d29
|
data/lib/graphiform/core.rb
CHANGED
@@ -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:
|
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:
|
166
|
+
type resolver_type, null: null
|
167
167
|
|
168
168
|
define_method :base_resolve do |**args|
|
169
169
|
@value = object
|
data/lib/graphiform/fields.rb
CHANGED
@@ -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
|
data/lib/graphiform/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|