However, the create/update payload for relational fields isn't an array, but a complex object (see below) which cause "validation" and probably other checks to fail.
Note: example of the current payload on a nested collection update called 'approvals'
Describe the Bug
Count is not working as expected for relations.
Count is only able to count items in arrays.
However, the create/update payload for relational fields isn't an array, but a complex object (see below) which cause "validation" and probably other checks to fail.
Note: example of the current payload on a nested collection update called 'approvals'
To Reproduce
Create a validation rule using "count" for a relational field.
Directus Version
v9.26.3
Hosting Strategy
Self-Hosted (Custom)