Ready to use lambdas for webhooks? This documentation takes you through the schemas, resolvers, and examples.
@lambdaOnMutate
directive along with the mutation events
(add
/update
/delete
) you want to listen on.
add
/update
/delete
) on any Author
object:
addWebHookResolvers
method.
event
, dql
, graphql
or authHeader
inside the function.event
object within the resolver. Depending on the
value of operation
field, only one of the fields (add
/update
/delete
) is
part of the event
object. The definition of event
is as follows:
@lambdaOnMutate
is enabled and add those as resolvers:
addAuthor
mutation, the add
operation mapped to
the addAuthorWebhook
resolver is triggered: