A function that takes relations and gives one, which Cube has no step of its own for: what Cube knows of it, to draw it as a step (RelationFunction). The functions Cube knows are listed in CUBE_RELATION_FUNCTIONS.

interface CubeRelationFunction {
    columns: CubeRelationFunctionColumns;
    description: string;
    icon?: string;
    label: string;
    path: string;
    relationInputs: 1 | 2;
}

Properties

How its rows' columns follow from its inputs'

description: string

What it does, in a sentence, for its step's tooltip

icon?: string

The icon of its step, one of a step type's (NodeDefinition.icon), e.g. concat; a function's by default

label: string

Its name on its step, e.g. "Union"

path: string

Its path, e.g. meta::pure::functions::relation::union

relationInputs: 1 | 2

How many of its first parameters are relations: its step's inputs