RQL Basics
RQL is a query language built for the way you actually work with application state.
What is RQL?
RQL is pipeline-based. You start with your data and chain transforms to filter, aggregate, and shape it.
Unlike SQL, RQL reads top to bottom. Each line takes the output of the previous one and transforms it. No nested subqueries, no inside-out reading.
Query Structure
Every query starts with a data source, then you chain transforms:
$ Query Structure
Each transform operates on the result of the one above it. One line, one step.
Data Sources
The from transform tells RQL where your data lives.
Tables
Pull data from a table:
$ Tables
Inline Data
Use inline arrays when you want to prototype without creating a table:
$ Inline Data
Literals
These are the literal types you can use in RQL:
| Type | Example |
|---|---|
| Strings | "hello" or 'hello' |
| Numbers | 42, 3.14, 1_000_000 |
| Booleans | true, false |
| Undefined | undefined |
Next Steps
Now that you know the basics, see what you can do with Transforms.
