© 2026 Hedgehog Software, LLC
array_cat
function array_cat(json[], record) does not exist
const table1 = pgTable("table1", { messages: json("messages") .array() .$type<Message[]>() .notNull() .default(sql`ARRAY[]::json[]`) })
await ctx.db .update(table1) .set({ messages: sql`array_cat(${table1.messages}, ${newMessages})`, })