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.

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

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