Query filter based on related entities.
Example
const relatedEntityFilter = {
type: "relatedEntity",
left: {
type: "attribute",
attribute: "EmployeeName",
attributeType: "String",
},
rightEntity: "MyFirstModule.Employee_Department",
rightEntityAlias: "Department",
right: {
type: "attribute",
attribute: "DepartmentName",
attributeType: "String",
},
next: {
type: "function",
name: "and",
parameters: [
{
type: "function",
name: "=",
parameters: [
{ type: "attribute", attribute: "EmployeeName", attributeType: "String" },
{ type: "value", value: "John" }
]
},
{
type: "function",
name: "contains",
parameters: [
{ type: "attribute", attribute: "Department.Name", attributeType: "String" },
{ type: "value", value: "Engineering" }
]
}
]
}
};