pipe Zod select schema into db.select()

Hi! I just want to select the fields in my zod selectSchema. Is it possible to select only select schema fields without having to manually create the db.select object?


I imagine there's some method for piping the schema into that select parameter
Was this page helpful?