> For the complete documentation index, see [llms.txt](https://cross-packages.gitbook.io/cross-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cross-packages.gitbook.io/cross-api/services/exists.md).

# Exists

Receives any parameter as an argument as long as it is a { key: value } or array of { key: value }, check if an entity exists in the database.

```typescript
const example = await this.examplesRepository.exists(
  { where: { id: 123 } },
  trx,
);

// Find one where id = 123 and return a boolean
```

***
