So I am creating an application which has some social media aspects to it.
To simplify my question, lets say that every user can have multiple posts and other users can
like these posts or comment on those and users can follow each other.
What I want is to have is a
Notifications feed which should show on UI something like what twitter does.
When there is a Post from someone I follow I want to see that notification, as well as when someone likes or comments on my post I want to see those notifications.
then there will be system notifications such as reminders or recommendations.
I am using DGraph Cloud (Slash) and UI is directly connected to graphql . I can use lambdas.
What I am not 100% clear is how should I structure the schema and mutations to add these notifications.
So, lets say a user likes a post. Should I add a new notification for the author using lambda mutations?
But then it looks like I will have to create lambda mutations almost everywhere and cannot use the auto generated mutations. Or is there a way to
Trigger new mutation from a mutation. Example: when user likes a post, the Backend will go ahead and create a new notification for the author (without lambdas).
Any help is highly appreciated.
EDIT: looks like @ custom could help me. Can I use Custom resolver to call the SAME graph endpoint?
thank you and regards!