Forge functions recieve two arguments, a module specific payload and an object containing contextual information for the function invocation.
1 2export const handler = (payload, context) => { // Do something }
Functions implemented with @forge/resolver
resolver definitions receive arguments differently.
The payload is entirely module specific, for example a webtriggers request.
Context is the same for all modules.
Property | Type |
---|---|
principal | { accountId: string } | undefined |
installContext | string |
workspaceId | string | undefined |
license | { isActive: string } | undefined |
Rate this page: