i have 3 collections like this
ModelA :
{
_id :ObjectId("60d2cd964200b320e7dc5c04"),
name : 'Item 1'
}
ModelB :
{
_id :ObjectId("60e3c8e0748d2a18476ceb6f"),
modelA : ObjectId("60d2cd964200b320e7dc5c04"),
field1 : 'field1 item A',
field2 : 'field2 item B',
}
ModelC :
{
_id :ObjectId("60e3c8e0748d2a18476ceb70"),
modelB : ObjectId("60e3c8e0748d2a18476ceb6f"),
status : 'finish'
}
i want to fetch data all these collections where the ModelA name is 'Item 1' and ModelC status is equal 'Finish', how can i join these 3 collections using Aggregations ?