Skip to main content

Relation

A Relation represents a data table. It is essentially a List of Contexts (a table of rows).

Structure

  • Columns: Define the fields (keys).
  • Rows: Define the data values.

Example

NameAgeRole
"Alice"30"Manager"
"Bob"25"Developer"

Result:

[
{ "Name": "Alice", "Age": 30, "Role": "Manager" },
{ "Name": "Bob", "Age": 25, "Role": "Developer" }
]

Usage

Relations are useful for defining lookup tables or static datasets within the model logic.