Script Editor Key Words
There are a handful of variables that have additional functionality within the Script Editor. These are not reserved, so can be re-assigned, but if so they will lose their original functionality within that script.
These can be found within the Code Snippets, under the Data subheading and the Entities → Operators subheading:
-
Req:
Useful for handling Request data when the script is being used as an API endpoint. For example: Use req.body to get the body of the request, being sent to the script. Result:
-
Operators: Such as: Any, Between, Like, Not:
Needs to be declared before being used within a query:
Or simply use operators.[operation]:
-
wfData:
As the Script Editor is using Typeorm, more information can be found here: https://typeorm.io/