Database

db={local:[],foreign:[]}

Query

db.local.aggregate([{$lookup:{from:"foreign",pipeline:{},as:"output"}}])

Result