© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
4 replies
Amur

Postgrest inserting json array results in stringified array

I'm trying to insert a an array of objects as a json array but it always ends up being strinfied
if it would be just a json then i can do
sql
sql
${recipeData.notes}::jsonb
` but that doesn't work with arrays (
` but that doesn't work with arrays (
cannot cast type record to jsonb`)
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

json_arrayagg(json_array ...
Drizzle TeamDTDrizzle Team / help
2y ago
Joins with results in arrays
Drizzle TeamDTDrizzle Team / help
2y ago
Return object instead of an array when inserting object
Drizzle TeamDTDrizzle Team / help
2y ago
COALESCE to json array not working in sql function
Drizzle TeamDTDrizzle Team / help
13mo ago