Skip to content

gi-nx


gi-nx / getNode

ts
function getNode(id: string): GiraffeNodeComponentBase;

Returns the registered node definition for a given node instance id.

Parameters ​

ParameterTypeDescription
idstringThe instance id of the node.

Returns ​

GiraffeNodeComponentBase

Throws ​

If no node with the given id exists.

Example ​

typescript
// Envelope node GUID — see /md/nodes.md
const ENVELOPE = '2fee2ab8-18fb-42d3-bd2e-153c2c291058';
const node = gi.getNode(ENVELOPE);
console.log(node.inputs);