FilterProperty

FilterProperty

Filter based on a property

Constructor

new FilterProperty(property, op, value)

Source:
Examples
//Filter based on property "myProperty" being equal to "someValue"
{
    "property": "myProperty",
    "equals": "someValue"
}
//Filter based on string property "myProperty" starting with "someValue"
{
    "property": "myProperty",
    "startsWith": "someValue"
}
Parameters:
Name Type Description
property string The property to filter on
op FilterOps The operator to use
value any The value to compare to

Methods

allowedTypes(filterOp) → {Array.<string>}

Source:
Parameters:
Name Type Description
filterOp FilterOps The filter op to get allowed types from
Returns:
- An array of allowed types
Type
Array.<string>