I have a custom filter (select-related) that actually WORKS:
The code above filters a specific field of the Contacts entity (`accountId`) by the provided value.
However, I created a many-to-many relationship where multiple Contacts can belong to multiple Accounts. The relationship's name is `accounts`. I want the filter to work for any contact whose `accountId` is present in the `accounts` relationship (link multiple).
The syntax above is, of course, incorrect; it’s just my draft. Would anyone be able to tell me what the correct syntax should be? I couldn't find anything in the documentation or online.
Code:
const filterObject = {
advanced: {
myFilter: {
type: 'equals',
attribute: 'accountId',
value: accountId
}
}
};
However, I created a many-to-many relationship where multiple Contacts can belong to multiple Accounts. The relationship's name is `accounts`. I want the filter to work for any contact whose `accountId` is present in the `accounts` relationship (link multiple).
Code:
const filterObject = {
advanced: {
myFilter: {
type: 'equals',
link: 'accounts',
attribute: 'id',
value: accountId
}
}
};
The syntax above is, of course, incorrect; it’s just my draft. Would anyone be able to tell me what the correct syntax should be? I couldn't find anything in the documentation or online.

Comment