graphql-filters 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/graphql/filters/filterable.rb +7 -2
- data/lib/graphql/filters/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b076c0b5b31bc40bebcde4c3c31d591e2db787cd0171bf038eee2cbcc82298c
|
4
|
+
data.tar.gz: 9dc3ce9aec6a0c12e7e33fe3043a2891b49e7ae39bd4c58216944f73eb7f2bc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4abcd999b76f451a79f561c1734744af837bc815eef0cee77c405d0abdcde5f55c4733cd3ba2051216b2e9d1ff5fc902e79e1be67add7872e6eb4f245e50f10d
|
7
|
+
data.tar.gz: c6221e45dd8d667e601e6608706cefdc3c90d4c09d924e7e0822617d1a8f48ada8fd281fb3cf58596cc75d7e442a5b677d3e090ac69efb0a1c69b8f4dde08daf
|
data/CHANGELOG.md
CHANGED
@@ -8,11 +8,17 @@
|
|
8
8
|
### Bug fixes
|
9
9
|
)-->
|
10
10
|
|
11
|
+
## 1.0.7 2025-01-17
|
12
|
+
|
13
|
+
### Bug fixes
|
14
|
+
|
15
|
+
- Fixed `Filterable` redefining `resolve` instead of overriding it.
|
16
|
+
|
11
17
|
## 1.0.6 2025-01-17
|
12
18
|
|
13
19
|
### Bug fixes
|
14
20
|
|
15
|
-
-
|
21
|
+
- Fixed `NoMethodError` when using `Filterable` without `SearchObject` and not passing a filter.
|
16
22
|
|
17
23
|
## 1.0.5 2024-11-29
|
18
24
|
|
@@ -33,9 +33,14 @@ module GraphQL
|
|
33
33
|
|
34
34
|
argument :filter, inner_type.comparison_input_type, required: false
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
# Using the `def` raw here would redefine the method on the class that prepended the module, insted of inserting
|
37
|
+
# it in the ancestor chain.
|
38
|
+
Module.new do
|
39
|
+
def resolve filter: nil, **kwargs
|
40
|
+
filter ? filter.call(super(**kwargs)) : super(**kwargs)
|
41
|
+
end
|
38
42
|
end
|
43
|
+
.tap { prepend _1 }
|
39
44
|
end
|
40
45
|
end
|
41
46
|
end
|