Skip to main content

Functions (Event Handler Workflows)

The Meta Framework allows you to write business logic in Typescript and Javascript functions You may use any language depending on your choice. We suggest to prefer Typescript over Javascript for type check reasons.

Video explanation of functions

Writing functions

Typescript

module.exports = function greet(GSContext: ctx){
return `Hello ${ctx.inputs.data.query.name}!`;
}

Javascript

module.exports = function greet(ctx){
return `Hello ${ctx.inputs.data.query.name}!`;
}