Types

Core type primitives used across the ArcFlow engine.

Identifiers#

IdentifierDisplayDescription
NodeIdn42Unique node identifier, monotonically assigned
RelIdr7Unique relationship identifier
SkillIds3Unique skill identifier
Timestamp1711234567:000Milliseconds since UNIX epoch

Property value types#

14 types across three families: scalars, homogeneous lists, and spatial geometries. The columnTypes field on QueryResult reports the per-column tag using these same names (lowercased camelCase, e.g. 'int', 'intList', 'point3d').

Scalars and lists#

TypeGQL literalsNotes
NullnullMissing or unknown
Booleantrue, false
Integer42, -764-bit signed
Float3.14, -0.564-bit
String'hello'Single-quoted
IntList[1, 2, 3]Homogeneous list
FloatList[1.0, 2.5]Homogeneous list
StringList['a', 'b']Homogeneous list

Spatial geometries#

TypeGQL literalsNotes
Pointpoint({x: 10.0, y: 5.5})2D / 2.5D point
Point3dpoint({x: 1.0, y: 2.0, z: 3.0})Explicit 3D location
Vector3ddirection or velocity (no positional meaning)Stored, not spatially indexed
Extentaxis-aligned bounding boxStored, not spatially indexed
LineStringordered chain of 2D pointsIndexed by centroid; exact tests post-filter
Polygonclosed ring of 2D points (with optional holes)Indexed by centroid; exact tests post-filter

Each spatial value carries a coordinate reference system (Cartesian, Wgs84, or LocalFlat). Mixing frames in a single query raises a validation error. See Data Types and Spatial Reference.

Execution tiers and backends#

ConceptValuesWhere used
Skill tierSYMBOLIC, WASMCREATE SKILL ... TIER
Hardware backendCpu, Cuda, MetalArcFlow Adaptive Dispatch routing

Errors#

TypeDescription
ErrorClassValidation, Integration, Architecture, Timeout
TypedError{ class, code, message, failing_field, recovery_suggestion }

TypeScript SDK Types#

QueryCursor#

Paginated iteration over large result sets. See db.cursor().

interface QueryCursor {
  pageSize: number        // Rows per page
  pagesFetched: number    // Pages retrieved so far
  done: boolean           // True when all pages exhausted
  next(): QueryResult | null   // Fetch next page
  all(): QueryResult           // Collect all remaining pages
  close(): void                // Release the cursor
}

LiveQuery#

Handle returned by db.subscribe(). Tracks a live view subscription.

interface LiveQuery {
  viewName: string   // Internal live view name
  cancel(): void     // Stop the subscription and drop the live view
}

DeltaEvent#

Delivered to the SubscriptionHandler on every change.

interface DeltaEvent {
  added: SubscriptionRow[]     // Rows newly entering the result set
  removed: SubscriptionRow[]   // Rows leaving the result set
  current: SubscriptionRow[]   // Full current result set
  frontier: number             // Monotonic mutation sequence number
}
 
type SubscriptionRow = Record<string, string | number | boolean | null>
type SubscriptionHandler = (event: DeltaEvent) => void

SubscribeOptions#

interface SubscribeOptions {
  pollIntervalMs?: number   // How often to check for updates (default: 50ms, min: 10ms)
}

Code Intelligence Types#

Used by CodeGraph — see Code Intelligence Guide.

interface NodeSpec {
  label: string
  id: string
  contentHash?: string
  properties?: Record<string, string | number | boolean | null>
}
 
interface EdgeSpec {
  fromId: string
  toId: string
  edgeType: string
  properties?: Record<string, string | number | boolean | null>
}
 
interface GraphDelta {
  addedNodes?: NodeSpec[]
  removedNodeIds?: string[]
  addedEdges?: EdgeSpec[]
  removedEdges?: Array<{ fromId: string; toId: string; edgeType: string }>
}
 
interface DeltaStats {
  nodesAdded: number
  nodesUpdated: number
  nodesSkippedByHash: number
  nodesRemoved: number
  edgesAdded: number
  edgesRemoved: number
}
 
interface ImpactNode {
  id: string
  hop: number
}
 
interface ImpactSubgraph {
  nodes: ImpactNode[]
}

See Also#

Try it
Open ↗
Loading engine…