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

FieldDescriptionRequired

<operator>

A CQL expression operator which defines what type of computation has to be done in this expression. You can check the list of CQL expression operators here.

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