---
lang: en
title: 'API docs: repository.condition'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.condition.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [Condition](./repository.condition.md)

## Condition type

Condition clause

<b>Signature:</b>

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

## Example


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

```


