Using custom code in NodeJS

Is using custom code for formatters/modules possible in NodeJS server model yet? The way @patrick describes it here?

https://community.wappler.io/t/xml-imports/19964/21

1 Like

Turns out you can! Created a JS file under modules. Add under module.exports all actions that need to be exposed.

And in the server action JSON, it can be added as a step, like in @patrick 's example:

  {
  "name": "myImport",
  "module": "xml",
  "action": "import",
  "output": true,
  "options": {
    "path": "/data.xml"
  }

}

At least the right function gets called so far :slight_smile: It’s going to be a long night!