RelatedTo
Hierarchy
- Predicate
- RelatedTo
Index
Constructors
constructor
Methods
follow
followRecursive
staticand
staticcontains
Create a predicate matching a specified string property to a specified string.
Parameters
property: Property<string>
the string property to use for filtering
value: string
the value the string property must match
optionalcaseSensitive: boolean
if the match must pay attention to case sensitivity
Returns Predicate
new Predicate with the contains string operation
staticequals
staticgreaterThan
Create a predicate matching a specified number property to a numerical lower bound
Parameters
property: Property<number>
the number property to user for filtering
value: number
the lower bound
optionalstrict: boolean
if the inequality is strict or not
Returns Predicate
new Predicate with the greaterThan mathematical operation
staticnot
staticor
staticregex
Create a predicate matching a specified string property to a regular expression.
Parameters
property: Property<string>
the string property to use for filtering
value: RegExp
the regex the string property must match
optionalcaseSensitive: boolean
if the match must pay attention to case sensitivity
Returns Predicate
new Predicate with the match regex operation
staticsmallerThan
Create a predicate matching a specified number property to a numerical upper bound
Parameters
property: Property<number>
the number property to user for filtering
value: number
the upper bound
optionalstrict: boolean
if the inequality is strict or not
Returns Predicate
new Predicate with the smallerThan mathematical operation
Specific predicate class creator for filtering based on relations between objects
A path is defined by a list of relations, and an object match the predicate if and only if the patch can be followed to a destination (which might be specified)