Lycurgian
TTCTheo's Typesafe Cult
•Created by Lycurgian on 5/1/2024 in #questions
Array of Objects Drizzle
Hey there, can anyone help me with an issue on Drizzle Studio? On my schema, I have a question table with a answers field that I defined like this:
answers: json('answers').array()
But when I run drizzle studio and I try to add an object inside of an array it gives me an error saying malformed array literal, does anyone know what is the correct syntax to add it manually there on the drizzle studio?
And also to add it through the code using insert ?
6 replies