Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-trpc / server / initializeContext

Function: initializeContext() ​

initializeContext(_db, _flowStore, _folderStore, _nodeRegistry, _nodesCatalog, _mcpStore): void

Defined in: packages/chaingraph-trpc/server/context.ts:47

Initialize application context with stores Should be called once when application starts

Parameters ​

_db ​

NodePgDatabase<Record<string, unknown>> & object

_flowStore ​

IFlowStore

_folderStore ​

IFolderStore

_nodeRegistry ​

NodeRegistry

_nodesCatalog ​

NodeCatalog

_mcpStore ​

IMCPStore

Returns ​

void

Licensed under BUSL-1.1