graphiti 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti/resource/sideloading.rb +2 -2
- data/lib/graphiti/resource_proxy.rb +5 -1
- data/lib/graphiti/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: 702baf7bca346f2b8d5cce4bc801191e2fa4ad39c67457c60c55d3617509878a
|
4
|
+
data.tar.gz: e9ac9fe8f507f14b3f443fb0c0870457a6296dc9ce97edce31d3183bf1714f2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab8370646228339af5859df4e67db45d7a6c4be5b8d635768bdfecb47961b12ec0c981c0493da8aa2cdcd7efb0d789565a70870f54ff997b7380f2a72dfb65e9
|
7
|
+
data.tar.gz: f7670b3d725bae965036838aeb1437ccecb171deb5c407a697df2dedd0ffc7d6bc69e3c6af7b4584401dfa9737a2d907447326617cd12cb2eda3a161b3ff502a
|
@@ -68,7 +68,7 @@ module Graphiti
|
|
68
68
|
model_ref = model
|
69
69
|
has_many name, opts do
|
70
70
|
params do |hash|
|
71
|
-
hash[:filter][:"#{as}_type"] = model_ref.name
|
71
|
+
hash[:filter][:"#{as}_type"] = { eql: model_ref.name }
|
72
72
|
end
|
73
73
|
|
74
74
|
instance_eval(&blk) if blk
|
@@ -82,7 +82,7 @@ module Graphiti
|
|
82
82
|
model_ref = model
|
83
83
|
has_one name, opts do
|
84
84
|
params do |hash|
|
85
|
-
hash[:filter][:"#{as}_type"] = model_ref.name
|
85
|
+
hash[:filter][:"#{as}_type"] = { eql: model_ref.name }
|
86
86
|
end
|
87
87
|
|
88
88
|
instance_eval(&blk) if blk
|
@@ -85,9 +85,13 @@ module Graphiti
|
|
85
85
|
|
86
86
|
def stats
|
87
87
|
@stats ||= if @query.hash[:stats]
|
88
|
+
scope = @scope.unpaginated_object
|
89
|
+
if (group = @query.hash[:stats].delete(:group_by))
|
90
|
+
scope = scope.group(group[0])
|
91
|
+
end
|
88
92
|
payload = Stats::Payload.new @resource,
|
89
93
|
@query,
|
90
|
-
|
94
|
+
scope,
|
91
95
|
data
|
92
96
|
payload.generate
|
93
97
|
else
|
data/lib/graphiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jsonapi-serializable
|