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?Usage – DrizzleORM
Drizzle ORM | %s
1 Reply
Drizzle Queries - DrizzleORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind