© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
1 reply
Matan Nahmani

createInsertSchema forgets .$type() on text json mode fields in sqlite

for example:
foodThemes: text("foodThemes", {
mode: "json",
}).$type<foodThemes[]>(),
foodThemes will be referenced as JSON
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

createInsertSchema wrong type (drizzle-zod 0.3.1, sqlite))
Drizzle TeamDTDrizzle Team / help
3y ago
default to empty object for sqlite text field with JSON mode
Drizzle TeamDTDrizzle Team / help
2y ago
text mode json for sqlite Dq doesn't parse by default
Drizzle TeamDTDrizzle Team / help
2y ago
{mode: "json"} sqlite/libs sql does nothing
Drizzle TeamDTDrizzle Team / help
13mo ago