Commit 9e889d0
fix: use object-based $filter for child record queries instead of OData string
The $filter was being passed as an OData string ("order eq 'o1'") but the
ObjectStackAdapter.convertQueryParams expects a Record<string, any> object
which gets converted to FilterNode AST. A string filter was silently mangled
by Object.entries() treating each character as a key, resulting in no matching
records returned.
Changed to: { [referenceField]: pureRecordId } which produces the correct
filter AST ['order', '=', 'o1'] for the backend query.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 5b70bc0 commit 9e889d0
2 files changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments