$lookup output as an array of object

Hello guys, i’ve been trying to query my data using $lookup, i want to access the fields in the emballage details that i’m getting as an array with an object, how can i access the thos fields using $project
Thanks in advance

See the examples at $arrayElemAt (aggregation) — MongoDB Manual.

1 Like

Thank you so much it worked!!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.