Add filtering
To discard irrelevant responsibility results, use filtering.
{
"ViewConfig": {
"Resources": {
"Community": {
"Id": { "name": "communityId" },
"Name": { "name": "communityName" },
"Responsibility": [
{
"Id": { "name": "userResponsibilityId" },
"User": {
"Id": { "name": "userId" },
"FirstName": { "name": "firstName" },
"LastName": { "name": "lastName" }
},
"Role": {
"Signifier": { "name": "userRoleName" }
},
"Filter": { "Field": { "name": "userId", "operator": "NOT_NULL" } }
},
{
"Id": { "name": "groupResponsibilityId" },
"Group": {
"Id": { "name": "groupId" },
"GroupName": { "name": "groupName" }
},
"Role": {
"Signifier": { "name": "groupRoleName" }
},
"Filter": { "Field": { "name": "groupId", "operator": "NOT_NULL" } }
}
]
}
}
}
}Filter is a reserved key. The example above first includes a "userId is not null" filtering clause to show responsibilities with a related user. Then, select the related responsibilities again, this time only keeping those with a related group.
Last updated
Was this helpful?