method DatabaseService.prototype.getRepository
DatabaseService.prototype.getRepository<Entity, Id extends EntityKey = string>(entity: string): IRepository<Entity, Id>

Returns a repository bound to the named entity on the outer database scope.

Type Parameters

Entity
Id extends EntityKey = string

Parameters

entity: string

Return Type

Usage

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