Hi guys, I've had trouble updating an array in an ...
# orm-help
o
Hi guys, I've had trouble updating an array in an embedded type. I'm hoping someone has done this before.
type Comment @db(name: "comments"){
id: ID! @id
text: String!
comic: Comic!
likes: Likes!
replies: [Reply!]!
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
}
type Likes @embedded {
count: Int! @default(value: 0)
voted: [User!]!
}
I'm trying to update the voted array in the likes type when I update Comments but I haven't been able to do that successfully, Any help will be strongly appreciated.