Data Types
Inside a Node.js operator you use JavaScript types and data structures. The following table shows how SAP Data Hub Modeler types are mapped to JavaScript types:
| SAP Data Hub Modeler | JavaScript |
|---|---|
| string | String |
| blob | Buffer |
| int64 | Number |
| uint64 | Number |
| float64 | Number |
| byte | Number |
| message | Object |
| []x | Array |
The letter x in the last row of the table should be replaced with any of the allowed types (except for message), e.g., []string, []uint64, [][]blob, etc. The conversion is always done by the Node.js subengine. If data reaches the Node.js operator script, it is already converted in respect to the above table.
