Help on $ lookup on mongodb

Hello everyone, I’m breaking my mind :frowning: , I’m new to MongoDB and I was once assigned a requirement of an advanced level:

I have an array inside another array and I need to get the smallest one inside the nested array and assign that value to a higher level of the array (in the parent), I tried with $ reduce, but it did not work as expected,

I would like you to please help me