Just a quick question: I have an idea about how a ...
# prisma-whats-new
f
Just a quick question: I have an idea about how a User can follow another User but how can a User get through a query all Users that are following him? I managed to do that in a RESTful way but I had to play with custom methods and logic. I guess I shouldn't have to if I had a better model of the relationship. So I'm trying to do the same in a "graph" way...
h
f
Thank you 🙂
So basically, there should be a Friendship meta model like I used to do in REST
and it holds follower and followee as Users
then I query all Frienships where i'm the followee
right?
h
Exactly 🙂 Plus it makes plenty of room to describe to your users how their popularity is going over time, etc.
n
Awesome, thanks @hvillain for sharing the resource. I think it's a great approach here 🙂