I am working with applications using MongoDB, nodeJs. I have a document with 2 level nested data on it. I want to push data of a 2-level nested array based on a 1-level "uuid". I will attach my document picture and you will know exactly what I wanted.
Node code:
await collection.update(
{
uuid: req.query.sub_uuid
},
{
$push: { subtests.uuid: req.body }
});
await test.save();
Thanks in Advance.
