getPluginData

getPluginData

Get plugin data by key.

getPluginData(key: string): Promise<string | null

Plugin data lets you store arbitrary string values on individual nodes, scoped to your plugin.

Parameters

  • key: string – The plugin data key.

Returns

  • Promise<string | null> – The stored value, or null if no data exists for the key.