Skip to content

Commit a272be4

Browse files
committed
Update zod docs
1 parent 7349c3a commit a272be4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/docs/zod.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ drizzle-zod
1414
<Callout type="warning">
1515
This documentation is for `[email protected]` and higher
1616

17-
You must also have Drizzle ORM v0.36.0 or greater and Zod v3.0.0 or greater installed.
17+
You must also have Drizzle ORM v0.36.0 or greater and Zod v3.25.1 or greater installed.
1818
</Callout>
1919

2020
### Select schema
@@ -110,10 +110,10 @@ Each create schema function accepts an additional optional parameter that you ca
110110
```ts copy
111111
import { pgTable, text, integer, json } from 'drizzle-orm/pg-core';
112112
import { createSelectSchema } from 'drizzle-zod';
113-
import { z } from 'zod';
113+
import { z } from 'zod/v4';
114114

115115
const users = pgTable('users', {
116-
id: integer().generatedAlwaysAsIdentity().primaryKey(),
116+
id: integer().primaryKey(),
117117
name: text().notNull(),
118118
bio: text(),
119119
preferences: json()
@@ -165,7 +165,7 @@ const userInsertSchema = createInsertSchema(users, {
165165
```ts copy
166166
import { pgTable, timestamp } from 'drizzle-orm/pg-core';
167167
import { createSchemaFactory } from 'drizzle-zod';
168-
import { z } from 'zod';
168+
import { z } from 'zod/v4';
169169

170170
const users = pgTable('users', {
171171
...,

0 commit comments

Comments
 (0)