Reputation: 226
When developing a CONNECT package, how can you add a call to another node programmatically?
Upvotes: 1
Views: 47
Reputation: 935
you can easily do that via the javascript API:
const platform = require('connect-platform');
platform.call('/your-path', {
paramA: "some-value",
//
// all other parameters you want to pass. if there are none, leave this empty.
//
});
check this guide for more info on that: https://medium.com/connect-platform/inline-coding-in-connect-platform-534fce3c8cdf
Upvotes: 1