0.1.0-beta.3 • Published 5 months ago
@klerick/json-api-nestjs-typeorm v0.1.0-beta.3
json-api-nestjs-typeorm
TypeOrm adapter for json-api-nestjs
Installation
$ npm install @klerick/json-api-nestjs-typeormConfiguration params
The following interface is using for the configuration:
export type TypeOrmParam = {
useSoftDelete?: boolean // Use soft delete
runInTransaction?: <Func extends (...args: any) => any>(
isolationLevel: IsolationLevel,
fn: Func
) => ReturnType<Func> // You can use cutom function for wrapping transaction in atomic operation, example: runInTransaction from https://github.com/Aliheym/typeorm-transactional
};