method BaseRepository.prototype.exists
Since 0.1.0
BaseRepository.prototype.exists(id: Id): Promise<boolean>

Check whether an entity with the given primary key exists.

Parameters

id: Id

Primary key value

Return Type

Promise<boolean>

true when the entity exists

Usage

import { BaseRepository } from "database-plugin/src/index.ts";