@serenity-is/corelib / Criteria
Function: Criteria()
Criteria(
field):CriteriaBuilder
Defined in: src/base/criteria.ts:855
Creates a fluent CriteriaBuilder for the given field.
Parameters
field
string
Field name / property key, e.g. "Amount" or "Customer.Name".
Returns
A CriteriaBuilder bound to the field.
Remarks
The returned builder extends Array so it doubles as a field token. A prototype
fixup handles environments where subclassing Array is unreliable.
Examples
Criteria("Age").ge(18);
Criteria("Name").contains("acme");