ItemsAction

ArrayActions. ItemsAction

An action 'items' that extracts an array property or variable into another variable, optionally applying filtering

Constructor

new ItemsAction()

Source:
Examples
//Shorthand, returns result into variable 'items' and applies no filtering
{
    "items": "myArrayProperty"
}
//Shorthand, returns result into variable 'items' and applies no filtering
{
    "items": "$myArrayVariable"
}
//Property example
{
    "items:" {
        "property": "myArrayProperty",
        "as": "myResultVariableName",
        "where": {
            "equals": "my-specific-value"
        }
    }
}

//Property example, on non selected concept
{
    "items:" {
        "property": "myConcept.myArrayProperty",
        "as": "myResultVariableName",
        "where": {
            "equals": "my-specific-value"
        }
    }
}
//Variable example
{
    "items:" {
        "variable": "myArrayVariableName",
        "as": "myResultVariableName",
        "where": {
            "equals": "my-specific-value"
        }
    }
}