FilterVariable

FilterVariable

Filter based on a variable

Constructor

new FilterVariable(variable, op, value)

Source:
Examples
//Filter based on variable "myVariable" being equal to "someValue"
{
    "variable": "myVariable",
    "equals": "someValue"
}
//Filter based on string variable "myVariable" starting with "someValue"
{
    "variable": "myVariable",
    "startsWith": "someValue"
}
Parameters:
Name Type Description
variable string

The variable to filter on

op FilterOps

The operator to use

value any

The value to compare to

Methods

allowedTypes() → {Array.<string>}

Source:
Returns:
  • An array of allowed types
Type
Array.<string>