Get number of items returned by last node
if (Object.keys(items[0].json).length === 0) {
return [
{
json: {
results: 0,
}
}
]
}
return [
{
json: {
results: items.length,
}
}
];[
{
"results": 8
}
]Last updated
Was this helpful?