graphql-searchkick 0.3.0 → 0.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce8ce0ab5e4d5b6931451ee3cc03dae30bdc496558c7b782d7df773e8e5f28c
|
4
|
+
data.tar.gz: d8679420f3fffcc24a00953633457a86c9abc1196dbdd5f9d2446f2a43d29f33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3596f016059a035b921b8cef015ede18b06bf08894d892ad9aba1048c949fa1a56bdb148841193de486068e8a7d24ed508284cf556fd4cd5b80bedf4d19ada64
|
7
|
+
data.tar.gz: a63dc196818c1558dc3ccf59c0c1b29926039f20b1a6f72fc7d2d1771b41bf0d0d822dc94c5fe3b61ad28a795bfd3bd73a5d10e932fa66bac3585de95775f463
|
@@ -11,14 +11,13 @@ module GraphQL
|
|
11
11
|
|
12
12
|
def resolve(object:, arguments:, context:)
|
13
13
|
next_args = arguments.dup
|
14
|
-
query = next_args.delete(:query)
|
15
14
|
result = yield(object, next_args)
|
16
15
|
|
17
16
|
if defined?(ActiveRecord::Relation) && result.is_a?(ActiveRecord::Relation)
|
18
17
|
result
|
19
18
|
else
|
20
19
|
model = options[:model_class]
|
21
|
-
LazySearch.new(result, query: query, model_class: model)
|
20
|
+
LazySearch.new(result, query: next_args[:query], model_class: model)
|
22
21
|
end
|
23
22
|
end
|
24
23
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-searchkick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Wilken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|