Omobolanle Aro
05/07/2020, 3:15 PMtype 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.