Graphback also allows people to add custom queries, mutations or subscriptions by generating empty stubs where users can write their resolvers. This can be done by defining
Subscription in your data model. The syntax is similar to SDL syntax.
If we have the following datamodel
and we want to implement a mutation to like a Post, then we can simply
This will add the mutation to the schema
and will generated a resolver file in custom folder
Note: This works similarily for