Replies: 7 comments 12 replies
-
Hello, I encountered some problems. It seems that Result does not support the new omit feature for the time being: |
Beta Was this translation helpful? Give feedback.
-
The typings when using If I do
Typescript still autocompletes Also can it be possible to add omit via a client extension? I dont want to add for all my clients, which is the only way currently unless i setup a new PrismaClient with its own connection. |
Beta Was this translation helpful? Give feedback.
-
After adding the omitApi preview feature, i still cannot use it globally, it throws a typescript warning however, it is enabled locally, what could the issue be ![]() |
Beta Was this translation helpful? Give feedback.
-
There is an issue when I'm trying to use the latest available version of the Prisma plugin inside the newest version of Webstorm IDE |
Beta Was this translation helpful? Give feedback.
-
I might have found a bug with the global omit feature. Specifying a single model generates the correct types with the omitted field gone:
Specifying multiple models generates incorrect types with all fields included:
|
Beta Was this translation helpful? Give feedback.
-
I am using "prisma":"5.19.1 and I can confirm that doesn't work at all. Is there any specific version that this works ? |
Beta Was this translation helpful? Give feedback.
-
We are using the new omitApi in our project to global omit the password from the user. THX! |
Beta Was this translation helpful? Give feedback.
-
Support for excluding fields from Prisma Client query results via
omit
is in preview behind theomitApi
preview feature since release of 5.13.0 on April 23rd:Please share your feedback about this new functionality in this discussion.
Beta Was this translation helpful? Give feedback.
All reactions