DominusPrime
DTDrizzle Team
•Created by DominusPrime on 8/4/2023 in #help
Best way to omit a field (e.g. password) after findMany from schema?
Let's say we have the following:
How can we use
drizzle-zod
to omit the password in (for example) an API response after running a findMany
query?
The docs mention it can be used for this purpose, but it doesn't show how.
Or am I just thinking about this the wrong way? If so, what is the right way?2 replies