Skip to main content

$$eval

Evaluates the input and then transforms the context with the expression

Usage​

{
"$$eval": /* value */
}

Returns​

Same type as input

Arguments​

ArgumentTypeValuesRequired / Default ValueDescription
PrimaryAnythingYesAny value

Examples​

Input

Definition

Output

[
{ "value": 4 },
{ "value": 2 },
{ "value": 13.45 },
{ "value": null }
]
{
"$$eval": {
"$$join":[
"\\$",
"$avg:",
"\\$",
"..value"
]
}
}
4.86
[
{ "value": 4 },
{ "value": 2 },
{ "value": 13.45 },
{ "value": null }
]
{
"$$eval":{
"$$jsonparse": {
"$$join": [
"{",
"'$$avg'",
":",
"'$'",
", 'by':'##current.value'",
"}"
]
}
}
}
4.86