We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
omit
Hello!
I've enabled omitApi like it is said in the docs:
omitApi
# schema.prisma generator client { provider = "prisma-client-js" previewFeatures = ["omitApi"] }
But when using the omit for globally hiding a field, TS complains and Prisma fails to build the client:
import { PrismaClient } from '@prisma/client'; export const prisma = new PrismaClient({ omit: { user: { password: true } }, // ^ here });
TS error:
Object literal may only specify known properties, and 'omit' does not exist in type 'Subset<PrismaClientOptions, PrismaClientOptions>'
Prima error:
PrismaClientConstructorValidationError: Unknown property omit provided to PrismaClient constructor.
Obs: I regenerated the client and restarted the TS Server.
The text was updated successfully, but these errors were encountered:
I was using an outdated version of prisma 🤦 The version with global support for omit was just released this week...
Sorry, something went wrong.
No branches or pull requests
Hello!
I've enabled
omitApi
like it is said in the docs:But when using the
omit
for globally hiding a field, TS complains and Prisma fails to build the client:TS error:
Prima error:
Obs: I regenerated the client and restarted the TS Server.
The text was updated successfully, but these errors were encountered: