ReferenceAuthoring Portal ReferenceIntegrationsInput & Output IntegrationsCustom Javascript Function
Calling External Services
iostack's Javascript execution environment supports fetch and GraphQL methods for calling external services:
Fetch
- Mimics the
fetch()mechanism commonly found in browsers. - Supports GET, HEAD, POST, PUT, PATCH and DELETE
- Supports configuration of arbitrary headers
- Supports
jsonortextresults - Returns a Promise enabling error and result handling using Promise chaining
eg.
.then(),.catch()and.finally()or use of async/await and exception handlers. - Unhandled exceptions or errors are automatically handled by the inference platform and reported in the Sandbox.
GraphQL
- Supports
queryandmutation - Supports configuration of arbitrary headers
- Returns a Promise enabling error and result handling using Promise chaining
eg.
.then(),.catch()and.finally()or use of async/await and exception handlers. - Unhandled exceptions or errors are automatically handled by the inference platform and reported in the Sandbox.