Why is omit not available for this query?
I am using prisma 5.21.1. If I try this call omit is not available why?
7 Replies
That's a good question, do you have a specific error message you can share?
When I set a local Omit it tells me the type is never
Have you enabled omitApi preview feature?
Excluding fields | Prisma Documentation
This page explains how to exclude sensitive fields from Prisma Client
I was surprised that it's still in beta. I've enabled it but cannot get it to work for this query where my author has a password that I want to omit.
How have you configured global omit?
https://www.prisma.io/docs/orm/prisma-client/queries/excluding-fields#excluding-the-password-field-without-using-omit
Have you done something like this?