graphql-sources 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/graphql/sources/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4c4a0eb243aaeb9d8758eb240a5024388ddcc18ae7ea215dcaf85500983fccd
|
|
4
|
+
data.tar.gz: f50bb59ddc1deb73af6887929f2e8312292be726806d4a9e0391df7f23f7e29c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d7e3ee3f499619863e9296477cce3ca7d727d381947d9ab33a5df2389b4ed5e9e3ccb94ef7c1e52b24928a3299166731357117f50015a6486bb9125e3c809af
|
|
7
|
+
data.tar.gz: 84aa0af376e29d8f3575a18a3d0181668fb9d46df96b5d039c4396cdd4c3b6751124ed32b7a2202453ea83c45cc62263a081fd5df6a8cd4ff145cf80998f00a2
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ end
|
|
|
37
37
|
|
|
38
38
|
```ruby
|
|
39
39
|
class PurchaseType < GraphQL::Schema::Object
|
|
40
|
-
field :customer, [
|
|
40
|
+
field :customer, [CustomerType], null: false
|
|
41
41
|
|
|
42
42
|
def customer
|
|
43
43
|
dataloader
|
|
@@ -147,7 +147,7 @@ class UserType < GraphQL::Schema::Object
|
|
|
147
147
|
|
|
148
148
|
def photos
|
|
149
149
|
dataloader
|
|
150
|
-
.with(GraphQL::Sources::
|
|
150
|
+
.with(GraphQL::Sources::ActiveStorageHasManyAttached, :photos)
|
|
151
151
|
.load(object)
|
|
152
152
|
end
|
|
153
153
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql-sources
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Sylvestre
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
234
234
|
- !ruby/object:Gem::Version
|
|
235
235
|
version: '0'
|
|
236
236
|
requirements: []
|
|
237
|
-
rubygems_version: 3.4.
|
|
237
|
+
rubygems_version: 3.4.20
|
|
238
238
|
signing_key:
|
|
239
239
|
specification_version: 4
|
|
240
240
|
summary: A set of common GraphQL DataLoader sources.
|