Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
go add golang examples for aws lambda (#602) Oct 15, 2018
nodejs6 add community boilerplates and examples (#430) Sep 13, 2018
python pep8 fixes for python files (#875) Oct 30, 2018
README.md update serverless trigger boilerplate for go (#801) Oct 20, 2018

README.md

Boilerplates for AWS Lambda serverless functions and Hasura GraphQL Engine's Event Triggers

Sample cloud functions that can be triggered on changes in the database using GraphQL Engine's Event Triggers.

These are organized in language-specific folders.

NOTE Some of the language/platforms are work in progress. We welcome contributions for the WIP langauages. See issues and the following checklist:

Folder name Use-case Node.js(6) Python Java Go C#
echo echo the trigger payload
mutation insert related data on an insert event using graphql mutation
push-notification send push notification on database event
etl transform the trigger payload and update an algolia index

Pre-requisites

  1. AWS account with billing enabled
  2. Hasura GraphQL Engine

AWS setup

You need to create a corresponding AWS Lambda for each of these examples.

As the Hasura event system takes webhooks as the event triggers, we need to expose these Lambdas as webhooks. To do that, we need to add the API gateway trigger to each lambda and add an API to it.