Closed Webbly25 closed 1 year ago
Hi @Webbly25 which version are you using? Do you have a reproduction repo?
I have just made a repo with an example of the error: Repo. If you run the gql:
query User {
user(id: 9999) {
name
}
}
You will get the error which should be User not found
.
nestjs-prisma is version 0.20.0
@marcjulian @Webbly25 Can confirm the issue on v0.20.0. Downgraded to v0.19.0 and the expected error is shown. Seems to me that the issue is in v0.20.0.
Thank you @Webbly25 for the reproduction repo. I was able to fix the bug and added a GraphQL Example to test it out the in the future.
Please test it out with the latest bug release
npm i nestjs-prisma@0.20.1
I am using graphql and whenever I get any error (duplicate key, not found, ...) I get the following:
I tried adding the filter by using
APP_FILTER
in myapp.module.ts
and also by usingapp.useGlobalFilters(new PrismaClientExceptionFilter(httpAdapter));