omar-dulaimi / prisma-trpc-generator

Prisma 2+ generator to emit fully implemented tRPC routers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CreateMany generate object schema instead of array schema

cnf-blueware opened this issue · comments

Bug description

Seems like createmany zod schema is generating object schema similar to createone instead of generating the array schema for the data

export const CreateManySchema = z.object({
  data: CreateManyInputObjectSchema,
});

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

  • OS:
  • Database:
  • Node.js version:

Prisma Version


Hello @cnf-blueware
Do you have an idea how the working version would look to you?