must
must

Reputation: 226

How to make a node call from another node in a package on CONNECT platform?

When developing a CONNECT package, how can you add a call to another node programmatically?

Upvotes: 1

Views: 47

Answers (1)

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

Related Questions