Drizzle-zod insert schema list

Hi all,

Using the examples from the docs

import { createInsertSchema } from 'drizzle-zod';
const users = pgTable('users', {
  id: integer().generatedAlwaysAsIdentity().primaryKey(),
  name: text().notNull(),
  age: integer().notNull()
});
const userInsertSchema = createInsertSchema(users);


The userInsertSchema is for a singular value. Is it possible to extend this so it becomes an array? This is because usually if we are inserting values into db we can insert more than one.

userInsertSchema[]?
Was this page helpful?