Data Types

14 property value types across three families: 5 scalars (Null, Bool, Int i64, Float f64, String), 3 homogeneous lists (IntList, FloatList, StringList), and 6 spatial geometries (Point, Point3d, Vector3d, Extent, LineString, Polygon). No implicit coercion.

Scalar Types#

TypeWorldCypher LiteralExample
Nullnullnull
Booleantrue, falsetrue
Integernumeric literal42
Floatdecimal literal3.14
Stringsingle-quoted'hello'

Collection Types#

TypeDescription
IntListList of integers
FloatListList of floats
StringListList of strings

Spatial Types#

TypeDescriptionExample
Point2D / 2.5D locationpoint({x: 10.0, y: 5.5})
Point3dExplicit 3D locationpoint({x: 1.0, y: 2.0, z: 3.0})
Vector3d3D direction or velocity (no positional meaning)velocity / orientation properties
ExtentAxis-aligned bounding boxbounding regions, query frustums
LineStringOrdered chain of 2D pointstrajectories, paths, routes
PolygonClosed ring of 2D points (with optional holes)zones, footprints, geofences

Spatial values are first-class — they round-trip through the typed result API and are surfaced in columnTypes as the matching tag ('point', 'point3d', etc.). See Spatial Reference for query-side syntax.

Coordinate Reference Systems#

Spatial values carry an explicit coordinate frame: Cartesian (default), Wgs84 (lat/lng), or LocalFlat. Mixing frames in a single query errors at validation time — there is no implicit reprojection. Set the per-graph default with db.spatialMetadata() configuration; override at insert time with the literal form.

Type Coercion#

WorldCypher does not perform implicit type coercion. Comparing an Int to a String returns no match — it does not error or cast. The same rule applies to spatial types: a Point does not compare equal to a Point3d even at the same (x, y).

See Also#

Try it
Open ↗
Loading engine…