hey guys! I'm playing around with prisma and types...
# prisma-client
a
hey guys! I'm playing around with prisma and typescript and I'm stuck on an issue. I declared a column as Json (using postgres) but I cannot find a way to read it from db
Copy code
const room = await prisma.room.findUnique({ where: { id: roomId } })
            room.messages // what type should I declare this in order to edit it?!
r
console.log(room) ? does messages return?
"in order to edit it" - do you mean "in order to read the value in javascript" or do you mean "in order to pass a new or additional value through prisma to the database" ?