ChainGraph API Documentation / @badaitech/chaingraph-types / getOrCreateNodeMetadata
Function: getOrCreateNodeMetadata()
getOrCreateNodeMetadata(
target):NodeMetadata
Defined in: packages/chaingraph-types/src/decorator/getOrCreateNodeMetadata.ts:19
Retrieves node metadata from the target using new decorators. It reads the node config stored under 'chaingraph:node-config' and merges port configurations (stored under 'chaingraph:ports-config') into the metadata.
Parameters
target
any