method IRepository.exists
Since 0.1.0
IRepository.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 { type IRepository } from "database-plugin/src/index.ts";