Building Expressions

Expressions are JSON like objects which process and return a specific calculated output at the runtime. An expressions object looks like -

Syntax

{
    <operator>: <value>
}

Properties

Field
Description
Required

<operator>

true

<value>

A list or dict of arguments required for the corresponding CQL operator.

true

Restrictions

You can have at most 1 CQL operator per expression object.

Examples

{
    "$add": [1,2,3]
}

The above expression will return 6 when used in any node that supports Expressions.

List of Expression Operators available in CQL

Last updated