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: e7cd3f32d5911c582242dd3eada324780dcc7bdbb71d36ea02ef381056cbd746
4
- data.tar.gz: 95cd5dcbcacb622785bcbc5fc03ca7de14a237f49b6065ec7d3a39d971bdfc9a
3
+ metadata.gz: 6ce8ce0ab5e4d5b6931451ee3cc03dae30bdc496558c7b782d7df773e8e5f28c
4
+ data.tar.gz: d8679420f3fffcc24a00953633457a86c9abc1196dbdd5f9d2446f2a43d29f33
5
5
  SHA512:
6
- metadata.gz: b652f084bf034cdd176c137ee5b65de299c37bb85a333471b6ebc1502d7b016c42a8fa8a8eec8a59d09c22e1d813af8e11a481b15f3a2902971bbdeb5fd45854
7
- data.tar.gz: 86d12ca1727e042b42ea211607a88367cf2d70c726b9195095d76a062d0cea3b9f0921e2fc98fa791c740b594dea801ca196324bc3d75b29521714e2d9f990c7
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
@@ -1,5 +1,5 @@
1
1
  module Graphql
2
2
  module Searchkick
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  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.3.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-05-29 00:00:00.000000000 Z
11
+ date: 2020-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal