I saw another piece of code as follows on the link https://www.aerospike.com/docs/client/nodejs/usage/query/aggregate.html:
client.apply('example', 'count', function (error, result) {
if (!error) {
console.log(result)
}
})
Not sure how to pass the UDF arguments.