Page Contents

Home > @loopback/repository > Condition

Condition type

Condition clause

Signature:

export declare type Condition<MT extends object> = {
    [P in KeyOf<MT>]?: PredicateComparison<MT[P]> | (MT[P] & ShortHandEqualType);
};

Example

{
  name: {inq: ['John', 'Mary']},
  status: 'ACTIVE',
  age: {gte: 40}
}