thomasdvd
thomasdvd
TTCTheo's Typesafe Cult
Created by thomasdvd on 3/17/2023 in #questions
Infering procedure input from prisma type
Hey, is there a way to infer the input validation from prisma entity? maybe with some utility something like this, which is wrong
upsertOrder: protectedProcedure
.input(
z.object({
order: z.somehow...<Prisma.dispo_order>
}),
...
upsertOrder: protectedProcedure
.input(
z.object({
order: z.somehow...<Prisma.dispo_order>
}),
...
2 replies