Hi all! any advice on creating an up voting system...
# prisma-whats-new
p
Hi all! any advice on creating an up voting system? Right now I just defined a many to one relation on my
Post
type ( 1 Post - many Users) I am thinking of adding or removing
User
relations when users toggle the like button, manually counting likes in a
likesCount
field ( +1 every time user relation added, -1 when removed) is there more elegant way of approaching this. Is there a way to obtain a count without manually doing it?