CreateGraphInstanceBody

Request body for a Graph operation.

Definition

TypeScript
interface CreateGraphInstanceBody {
  name: string;
  sourceId?: string | undefined;
  sourceType?: "file" | "manual" | "run" | undefined;
  nodes?:
    | Array<{ nodeDefinitionId: string; label: string; properties: unknown }>
    | undefined;
  edges?:
    | Array<{
        edgeDefinitionId: string;
        sourceLabel: string;
        targetLabel: string;
        label: string;
        properties?: unknown;
      }>
    | undefined;
}

Fields

FieldTypeNotes
namestringrequired — Instance name
sourceIdstring | undefinedoptional — Source ID for provenance
sourceType"file" | "manual" | "run" | undefinedoptional — Kind of source entity the graph was derived from.
nodesArray<{ nodeDefinitionId: string; label: string; properties: unknown; }> | undefinedoptional — Optional nodes to insert atomically with the graph row.
edgesArray<{ edgeDefinitionId: string; sourceLabel: string; targetLabel: string; label: string; properties?: unknown; }> | undefinedoptional — Optional edges connecting the same-batch nodes. Ignored unless nodes is also provided.