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
$ ctrl+enter to run

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
$ ctrl+enter to run

Inline Data

Use inline arrays when you want to prototype without creating a table:

$ Inline Data
$ ctrl+enter to run

Literals

These are the literal types you can use in RQL:

TypeExample
Strings"hello" or 'hello'
Numbers42, 3.14, 1_000_000
Booleanstrue, false
Undefinedundefined
Next Steps
Now that you know the basics, see what you can do with Transforms.