Am a beginner in mongoDB. I have two collections Book and author. [name and workswritten] are the common column respectively. Using inner join I have to emit the some columns in
Try this:-
db.book.aggregate([ { $lookup: { from: "author", localField: "name", foreignField: "works_written", as: "nameWorkData" } } ])