Skip to main content

Expressions

Inngest uses Google's Common Expression Language for evaluating conditional expressions. Detailed docs can be found here, but some example usages are listed below:

Basics

Let's assume we are working with the following event shape:

{
"event": {
"data": {
"foo": "bar",
"fooarr": [1, 2, 3, 4],
"mappy": {
"x": "bat",
},
"mapface": {
"x": "baz",
}
}
}
}

The following expressions all evaluate to true.

Equality

event.data.foo == 'bar'

Inequality

event.data.foo != 'baz'

Array equality

event.data.fooarr == [1, 2, 3, 4]

Map equality

event.data.mappy == event.data.mapface

String concatenation

event.data.foo + event.data.mappy.x == "barbat"

``