graphiti 2.1.2 → 2.1.3
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 +7 -0
- data/lib/graphiti/adapters/active_record/many_to_many_sideload.rb +8 -0
- data/lib/graphiti/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: 74e1daed9ec5b75cb0e0d959416ddfc9bade9cb3fb29b7e335138320562c2a9a
|
|
4
|
+
data.tar.gz: 7ae22d134898bf0894c1b06bcf58e29a282991aba5cd51c0586227aa3540f795
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b07cf35898cb6b5e77031453b1133da7f54a39de85920b6565ddf36261473d5bb0e595b7b655cd1701803a6a26fc123f339da50dd7e0bf458c9c706f748612a
|
|
7
|
+
data.tar.gz: 07e6b6a745846053854ddd2e4482bed7542fe492c297e10bd0b7972eaa27e1cc04bfabec97433c043a99860101effcc90f5b9cd87e8c88e627f3b6ead1f615ad
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
graphiti changelog
|
|
2
2
|
|
|
3
|
+
## [2.1.3](https://github.com/graphiti-api/graphiti/compare/v2.1.2...v2.1.3) (2026-10-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* including a polymorphic many_to_many on a resource that publishes public ids returned nothing ([44127c7](https://github.com/graphiti-api/graphiti/commit/44127c743752e8d7c35f1356bf7ec557ea125c6e))
|
|
9
|
+
|
|
3
10
|
## [2.1.2](https://github.com/graphiti-api/graphiti/compare/v2.1.1...v2.1.2) (2026-10-12)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -45,6 +45,14 @@ class Graphiti::Adapters::ActiveRecord::ManyToManySideload < Graphiti::Sideload:
|
|
|
45
45
|
|
|
46
46
|
private
|
|
47
47
|
|
|
48
|
+
# An internal param skips the :hash typecast that would parse each polymorphic JSON group.
|
|
49
|
+
def internal_parent_filter(parents, filter_name)
|
|
50
|
+
filter = super
|
|
51
|
+
return filter unless polymorphic? && filter.is_a?(Graphiti::Util::InternalParam)
|
|
52
|
+
|
|
53
|
+
Graphiti::Util::InternalParam.new(filter.value.map { |group| JSON.parse(group) })
|
|
54
|
+
end
|
|
55
|
+
|
|
48
56
|
def filter_for(scope, value, type = nil)
|
|
49
57
|
scope
|
|
50
58
|
.includes(through_relationship_name)
|
data/lib/graphiti/version.rb
CHANGED