Function
Type: Object
A function is equivalent to an AWS Lambda function - a small piece of code that can be executed in response to an event or triggered by a user action.
The function engine uses our Lua engine to provide low-latency execution and efficient resource utilization. The key benefit of this is that they operate alongside your data, enabling complex interactions to become simple.
Functions can:
- be triggered from other functions
- used as event handlers for Reactions (responding to changes in data)
- used as handlers for Recurring Tasks
- used as HTTP Handlers for custom HTTP endpoints
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| createdAt | DateTime! | |||
| description | String | A detailed description of what this function does | ||
| handle | String! | A unique identifier for the function - only letters, numbers and underscores are allowed, and it must start with a letter. | ||
| id | ID! | |||
| name | String! | A human readable name for the function | ||
| script | String! | The Lua script that defines the function's behavior | ||
| tags | [String!]! | An array of tags associated with the function for easy lookup and filtering | ||
| tagString | String | |||
| updatedAt | DateTime! |