A function query filter, which allows to use functions to filter records.
Examples
const filter = {
type: "function",
name: "=",
parameters: [
{ type: "value", value: "John", isGuid: false },
{ type: "attribute", attribute: "Name", attributeType: "String" }
]
};
const filter = {
type: "function",
name: "and",
parameters: [
{
type: "function",
name: "=",
parameters: [
{ type: "attribute", attribute: "Name", attributeType: "String" },
{ type: "value", value: "John" }
]
},
{
type: "function",
name: "contains",
parameters: [
{ type: "attribute", attribute: "Employer", attributeType: "String" },
{ type: "value", value: "Mendix" }
]
}
]
};
Members
"and"
|
"or"
|
"not"
|
">"
|
"<"
|
">="
|
"<="
|
"="
|
"!="
|
"contains"
|
"starts-with"
|
"ends-with"
# name
Specifies the function to be applied, such as logical operators ("and", "or", "not"), comparison operators (">", "<", ">=", "<=", "=", "!="), and string functions ("contains", "starts-with", "ends-with").
Array.<QueryFilter>
# parameters
An array of QueryFilter
objects that represent the parameters for the function.