Skip to main content

Dynamic Pipelines

Pipelines can be created using the graphical user interface (GUI), or they can be defined as JSON.

See the documentation for each stage to see the exact JSON it requires.

Here code to create and run an example pipeline.

// don't trust this code. Instead check the documentation for individual stages.
const stages = [
{
$filter: "country==1"
},
{
$select: ["q1", "q2", "q3"]
},
{
$sort: [
{ field: "q1", direction: "asc" }
]
}
]

// don't trust this pseudo code. It's just meant to give you an idea
// how to define calculations in javascript but run them in a highly performant manner.
const result = await pipeline.compute(stages);