Predicate

Provides functionality to build complex filter conditions in a query.

Methods

and

Adds a new predicate using the logical operator "and" to an existing predicate.

Parameter Type Description
field String Defines the field name (left side) to be used in the predicate.
operator String Operator Defines the filter operator.
value Object Defines the value (right side) of the predicate.
ignoreCase (optional) Boolean When true, ignores character casing when comparing characters.
ignoreAccent (optional) Boolean When true, ignores accent and will normalize certain characters.

Returns: Predicate

and

Adds n-number of new predicates using the logical operator "and" to an existing predicate.

Parameter Type Description
args Predicate[] Defines the collections of predicates to be added to the conditional statement.

Returns: Predicate

andnot

Adds a new predicate using the logical operator "and not" to an existing predicate.

Parameter Type Description
field String Defines the field name (left side) to be used in the predicate.
operator String Operator Defines the filter operator.
value Object Defines the value (right side) of the predicate.
ignoreCase (optional) Boolean When true, ignores character casing when comparing characters.
ignoreAccent (optional) Boolean When true, ignores accent and will normalize certain characters.

Returns: Predicate

andnot

Adds n-number of new predicates using the logical operator "and not" to an existing predicate.

Parameter Type Description
args Predicate[] Defines the collections of predicates to be added to the conditional statement.

Returns: Predicate

or

Adds a new predicate using the logical operator "or" to an existing predicate.

Parameter Type Description
field String Defines the field name (left side) to be used in the predicate.
operator String Operator Defines the filter operator.
value Object Defines the value (right side) of the predicate.
ignoreCase (optional) Boolean When true, ignores character casing when comparing characters.
ignoreAccent (optional) Boolean When true, ignores accent and will normalize certain characters.

Returns: Predicate

or

Adds n-number of new predicates using the logical operator "or" to an existing predicate.

Parameter Type Description
args Predicate[] Defines the collections of predicates to be added to the conditional statement.

Returns: Predicate

ornot

Adds a new predicate using the logical operator "or not" to an existing predicate.

Parameter Type Description
field String Defines the field name (left side) to be used in the predicate.
operator String Operator Defines the filter operator.
value Object Defines the value (right side) of the predicate.
ignoreCase (optional) Boolean When true, ignores character casing when comparing characters.
ignoreAccent (optional) Boolean When true, ignores accent and will normalize certain characters.

Returns: Predicate

ornot

Adds n-number of new predicates using the logical operator "or not" to an existing predicate.

Parameter Type Description
args Predicate[] Defines the collections of predicates to be added to the conditional statement.

Returns: Predicate

On This Page