omar-dulaimi / prisma-zod-generator

Prisma 2+ generator to emit Zod schemas from your Prisma schema
MIT License
535 stars 45 forks source link

[feature] Schema of Prisma's Return Value Required #72

Open cqh963852 opened 1 year ago

cqh963852 commented 1 year ago

Problem

I am using fastify + fastify-zod.

The fastify-zod required a return schema.

Suggested solution

Would you consider adding the payload schema?

Alternatives

Or I can contribute some code, now the code structure is very clear.

How about generating something called createManyXXXActionResult.schema.ts/findManyXXXActionResult.schema.ts ?

omar-dulaimi commented 1 year ago

Sure, it's something that this library should add sooner or later. Feel free to get started on it. I'm busier than usual lately, so I can't promise anything at this time.

Also, thank you for using this project

IShungite commented 1 year ago

up up