ChainGraph API Documentation / @badaitech/chaingraph-types / Metadata
Function: Metadata()
Metadata(
key,value):PropertyDecorator
Defined in: packages/chaingraph-types/src/decorator/port-config.decorator.ts:109
Metadata decorator to add arbitrary metadata key/value pairs to a port. This decorator updates the port metadata by merging the provided meta key and value.
Parameters
key
string
The metadata key to add.
value
any
The metadata value associated with the key.
Returns
PropertyDecorator