~/docs/guides/schema
DOCUMENTATION
Schema Definition
Define type-safe node and edge schemas
KiteDB schemas define the structure of your graph data. This guide covers how to define nodes, edges, and properties.
Defining Nodes
Nodes are the vertices in your graph. Each node type needs a unique name and can have typed properties.
schema.ts
Property Types
KiteDB supports the following property types:
string– Text stringsint– 64-bit integersfloat– 64-bit floating point numbersbool– Boolean valuesvector– Float32 embedding vectors
TypeScript builders are available as top-level exports (e.g. string()) or under prop (e.g. prop.string()).
Defining Edges
Edges connect nodes and can have their own properties.
typescript
Next Steps
- Queries & CRUD – Perform operations on your schema
- Vector Search – Add embedding vectors