graphql-filters 1.1.1 → 1.1.2
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/CHANGELOG.md +6 -0
- data/lib/graphql/filters/dsl/graphql/schema/interface.rb +17 -9
- 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: 9de45caa48df962f83a478a420a0cde866d340c4304839313643fc8857910a28
|
4
|
+
data.tar.gz: d661a80a465ab0aeac17aa3db0aef2c37187945ee9725926bb25b962571d5b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d63e576868301e6df02cd60ac7754c083e11b7e4d2419ceee9ba86389cf2d000a5a7d75e27b41efb2ca70b30630596fed65671a4701faebd482f6cb24b221f
|
7
|
+
data.tar.gz: efc2a57e8899e2ca4dfa5bc0b64f7383846431dcb5a5c492932b5d1ea9980d98bc6c8f654afcffcd14cd6a6174e2d85560acdf2806145de90d6242bd3e4c51c7
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
require 'active_support/concern'
|
2
|
+
|
3
|
+
monkey_patch = Module.new do
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
class_methods do
|
7
|
+
def comparison_input_type new_comparison_input_type=nil
|
8
|
+
if new_comparison_input_type.present?
|
9
|
+
@comparison_input_type = new_comparison_input_type
|
10
|
+
else
|
11
|
+
@comparison_input_type ||= get_comparison_input_type
|
12
|
+
end
|
7
13
|
end
|
8
|
-
end
|
9
14
|
|
10
|
-
|
11
|
-
|
15
|
+
def get_comparison_input_type(*)
|
16
|
+
GraphQL::Filters::InputTypes::ObjectComparisonInputType[self]
|
17
|
+
end
|
12
18
|
end
|
13
19
|
end
|
20
|
+
|
21
|
+
GraphQL::Schema::Interface.include monkey_patch
|