Mongo Playground

Configuration

[{"collection":"collection","_id":101},{"collection":"student_data",student_id:101,class:10,student_age:20}]

Query

db.collection.aggregate([{$lookup:{from:"student_data",localField:"_id",foreignField:"student_id",as:"data"}}])

Result