WHERE & HAVING
Structure
The where and having clauses use the following format:
WHERE: = [ CONDITION | ('AND'|'OR') | WHERE ],
CONDITION: = {field, op, val} | {field, op, subqry}//...
where: [
{ field: f.select('name'), op: '=', val: 'acme' },
{ field: f.select('annualRevenue'), op: '>=', val: 100 }
]WHERE Name = 'acme' AND AnnualRevenue >= 100where: [
{ field: f.select('name'), op: '=', val: 'acme' },
'OR',
{ field: f.select('annualRevenue'), op: '>=', val: 100 }
]WHERE Name = 'acme' OR AnnualRevenue >= 100Nesting Conditions
Conditions can be grouped/nested in parentheses by starting a new array
Value Rendering
Condition values are automatically converted based on their type:
string
stringstring[]
string[]number
numberboolean
booleanDate
DateLast updated
Was this helpful?