Easy Prisma support for your NestJS application
MIT License
Bot releases are visible (Hide)
Full Changelog: https://github.com/notiz-dev/nestjs-prisma/compare/v0.22.0...v0.23.0
Published by marcjulian 12 months ago
Full Changelog: https://github.com/notiz-dev/nestjs-prisma/compare/v0.22.0...v0.23.0-dev.0
Published by marcjulian about 1 year ago
enableShutdownHooks
as it is no longer needed (not needed since Prisma v3 - https://github.com/nestjs/docs.nestjs.com/pull/2797)Remove enableShutdownHooks
from your main.ts
// main.ts
- const prismaService: PrismaService = app.get(PrismaService);
- await prismaService.enableShutdownHooks(app);
Published by marcjulian over 1 year ago
enableShutdownHooks
as it is no longer needed (not needed since Prisma v3 - https://github.com/nestjs/docs.nestjs.com/pull/2797)Remove enableShutdownHooks
from your main.ts
// main.ts
- const prismaService: PrismaService = app.get(PrismaService);
- await prismaService.enableShutdownHooks(app);
Published by marcjulian over 1 year ago
providePrismaClientExceptionFilter
, improve exception filter docsThis removes enableShutdownHooks
from CustomPrismaService
as this is not available after PrismaClient $extends
. If you want to use $on
do it in this order
const prisma = new PrismaClient()
.$on(/* ... */)
.$extends({/* ... */})
Prisma.NotFoundError
as it is replaced by Prisma.PrismaClientKnownRequestError
Published by marcjulian over 1 year ago
This removes enableShutdownHooks
from CustomPrismaService
as this is not available after PrismaClient $extends
. If you want to use $on
do it in this order
const prisma = new PrismaClient()
.$on(/* ... */)
.$extends({/* ... */})
Published by marcjulian over 1 year ago
Published by marcjulian over 1 year ago
Published by marcjulian over 1 year ago
Prisma.NotFoundError
as it is replaced by Prisma.PrismaClientKnownRequestError
Published by marcjulian over 1 year ago
providePrismaClientExceptionFilter
, improve exception filter docsPublished by marcjulian almost 2 years ago
Published by marcjulian almost 2 years ago
text/html
to application/json
(#38, #39)Thanks to @Loskir for cleaning up the exception filter and changing the exception return type to application/json
.
Published by marcjulian about 2 years ago
Prisma.NotFoundError
of findFirstOrThrow
and findUniqueOrThrow
with PrismaClientExceptionFilter
Thanks to @ali-master for adding microservice support in shutdownHook.
Published by marcjulian about 2 years ago
Prisma.NotFoundError
of findFirstOrThrow
and findUniqueOrThrow
with PrismaClientExceptionFilter
(#36)Published by marcjulian about 2 years ago
Thanks to @ali-master for adding microservice support in shutdownHook.
Published by marcjulian about 2 years ago
Checkout the new docs site at nestjs-prisma.dev to get started with nestjs-prisma and find all configuration options. 🤩 If you find the docs are missing information, feel free to edit the README.md. 🙏
Thanks to @suryatmodulus for adding GraphQL support to the exception filter.
Thanks to @le-ar updating prisma client types for logging options.
Published by marcjulian about 2 years ago
Thanks to @le-ar updating prisma client types for logging options.
Published by marcjulian about 2 years ago
Thanks to @suryatmodulus for adding GraphQL support to the exception filter.
Published by marcjulian about 2 years ago
Thanks to @donnguyen for adding support for prisma v4.
Published by marcjulian over 2 years ago