Skip to content

ChainGraph API Documentation / @badaitech/chaingraph-types / createObjectConfig

Function: createObjectConfig()

createObjectConfig(properties, options): ObjectPortConfig

Defined in: packages/chaingraph-types/src/port/plugins/ObjectPortPlugin.ts:58

Helper to create an object port config. Instead of passing "fields", provide a record of properties that becomes the schema.

Parameters

properties

Record<string, IPortConfig>

options

Partial<Omit<ObjectPortConfig, "type" | "schema">> = {}

Returns

ObjectPortConfig

Licensed under BUSL-1.1