gi-nx / getNode
ts
function getNode(id: string): GiraffeNodeComponentBase;Returns the registered node definition for a given node instance id.
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The instance id of the node. |
Returns
GiraffeNodeComponentBase
Throws
If no node with the given id exists.
Example
typescript
// Envelope node GUID — see https://gi-docs-beta.web.app/md/nodes.md
const ENVELOPE = '2fee2ab8-18fb-42d3-bd2e-153c2c291058';
const node = gi.getNode(ENVELOPE);
console.log(node.inputs);