I am working on a small project and I am stuck from last month and looking for an exact query to update my document at the exact location...I did my best but didn't get my goal....Please help.
My Current Query
await test.update(
{
"subtests.uuid": req.query.sub_uuid
},
{
$set: {
$push:
{
"subtests.$[element].subtests": req.body
}
}
},
{
arrayFilters: [
{
"element.uuid": req.query.sub_uuid
}
]
});
With this query, I am getting an error saying (Typeerror: Callback.apply is not a function)
MongoDb Document Image
Error
Thank You to everyone who holds my hand in this complex query (for me it very complex because I am trying to solve it from the month)

