user
05/15/2017, 4:55 PMhttps://prisma.slack.com/files/U484CQQAJ/F5EGPPR71/failed.to.fetch.png▾
jeffo
05/15/2017, 4:55 PMuser
05/15/2017, 4:56 PMhttps://prisma.slack.com/files/U484CQQAJ/F5EGPPR71/failed.to.fetch.png▾
user
05/15/2017, 4:56 PMhttps://prisma.slack.com/files/U484CQQAJ/F5EGPPR71/failed.to.fetch.png▾
user
05/15/2017, 4:57 PMhttps://prisma.slack.com/files/U484CQQAJ/F5EGPPR71/failed.to.fetch.png▾
user
05/15/2017, 4:57 PMhttps://prisma.slack.com/files/U484CQQAJ/F5EGPPR71/failed.to.fetch.png▾
jeffo
05/15/2017, 4:59 PMkabriel
05/15/2017, 4:59 PMnilan
05/15/2017, 5:00 PMpatstrz
05/15/2017, 5:04 PMPost
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?nilan
05/15/2017, 5:05 PM_likesMeta { count }
field on the Post
🙂nilan
05/15/2017, 5:07 PMmartin
05/15/2017, 5:09 PMpatstrz
05/15/2017, 5:09 PMmartin
05/15/2017, 5:21 PMmartin
05/15/2017, 5:21 PMartyom
05/15/2017, 7:58 PMartyom
05/15/2017, 7:58 PMjoar
05/15/2017, 8:25 PMjoar
05/15/2017, 8:25 PMnilan
05/15/2017, 8:26 PMjoar
05/15/2017, 8:27 PMjoar
05/15/2017, 8:28 PMaurnik
05/15/2017, 8:36 PMaurnik
05/15/2017, 11:24 PMcadbot
05/15/2017, 11:27 PMartyom
05/15/2017, 11:27 PMcadbot
05/15/2017, 11:28 PMcadbot
05/15/2017, 11:28 PMartyom
05/15/2017, 11:29 PM