UNPKG

@nicheeeer/prisma-transaction

Version:

## Introduction `prisma-transaction` is a library that provides a simple way to use transactions in Prisma within NestJS using decorators. \ It simplifies handling transactions and ensures consistency across services by utilizing `AsyncLocalStorage` to m

8 lines (7 loc) 243 B
export function copyMethodMetadata(from: any, to: any) { const metadataKeys = Reflect.getMetadataKeys(from); metadataKeys.map((key) => { const value = Reflect.getMetadata(key, from); Reflect.defineMetadata(key, value, to); }); }