Database

db={node:[{_id:"444",}],hi:[{parent:"123",child:"444",},{parent:"666",child:"123",},{parent:"555",child:"666",}]}

Query

db.node.aggregate({"$graphLookup":{from:"hi",startWith:"$_id",connectFromField:"parent",connectToField:"child",as:"subTasks",maxDepth:3}})

Result