Best way to omit a field (e.g. password) after findMany from schema?
Let's say we have the following:
How can we use
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?
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?
Drizzle ORM | %s