Skip to content

Instantly share code, notes, and snippets.

@andr11111
Created January 29, 2019 18:16
Show Gist options
  • Save andr11111/9089162f443706120da474b8766104f4 to your computer and use it in GitHub Desktop.
Save andr11111/9089162f443706120da474b8766104f4 to your computer and use it in GitHub Desktop.
8base.yml example
functions:
resolverExample:
handler:
code: src/resolverFunc.ts
type: resolver
schema: src/resolverFunc.graphql
triggerBefore:
handler:
code: src/triggerBefore.ts
type: trigger.before
operation: TableName.create
triggerAfter:
handler:
code: src/triggerAfter.ts
type: trigger.after
operation: TableName.create
webhookExample:
handler:
code: src/webhookFunc.ts
type: webhook
path: webhook_url #optional, default: function name
method: POST
taskExample:
handler:
code: src/taskFunc.ts
type: task
schedule: 'rate(1 minute)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment