I can do something like
However, I am wondering... if it is possible to get filtering on condition like:
orderID is equal to 10248 or
( customerName starts with "Paul" and customerLastName start with "B" ) ?
Would you help me translate the conditions to filter: { ... } syntax?
Thank you,
// returns data where orderId is equal to 10248 or customerName starts with Paul
filter: {
logic: "or",
filters: [
{ field: "orderId", operator: "eq", value: 10248 },
{ field: "customerName", operator: "startswith", value: "Paul" }
]
}
However, I am wondering... if it is possible to get filtering on condition like:
orderID is equal to 10248 or
( customerName starts with "Paul" and customerLastName start with "B" ) ?
Would you help me translate the conditions to filter: { ... } syntax?
Thank you,