let arr = [
{
user_id:1,
hours:8
},
{
user_id:2,
hours:7
}
]
You can put check like this, note that arr would be the key in the request body.
:
check("arr.*.user_id")
.not()
.isEmpty()
check("arr.*.hours")
.not()
.isEmpty()