Skip to content

Functions:Helper Functions

Thomas Timmer edited this page Jun 26, 2023 · 12 revisions

Helper Functions

Functions are run within an (Isolated-vm) instance and will therefore have limited access to features you'd normally expect from within NodeJS (e.g.: http and filesystem access).

To still enable some of these functionalities, the runtime ships with a few global functions that we call 'Helper Functions'.

Connecting to the DataAPI

  • gql Send queries and mutations to the DataAPI

Generate Docx files

HTTP(S) Requests

Logging

  • console.log Print statements to the Application Logs. (Currently only available to internal developers)

Running actions

Sending emails

  • smtp Sending emails

SQL

  • SQL Send raw SQL queries to external databases

Storing files

Parse data

Clone this wiki locally