@onlynices/nest-prisma
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

NestJS Prisma Module

Usage

app.module.ts:

import { PrismaModule } from '@onlynices/nest-prisma';

@Module({
  imports: [PrismaModule],
  providers: [AppService]
})
export class AppModule {}

app.service.ts:

import { PrismaService } from '@onlynices/nest-prisma';

@Injectable()
export class AppService {
  constructor(private readonly prisma: PrismaService) {}

  async fetchSomething() {
    return this.prisma.something.findMany();
  }

  // ...
}

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @onlynices/nest-prisma

    Weekly Downloads

    4

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.3 kB

    Total Files

    12

    Last publish

    Collaborators

    • sledgeee