Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.member.aggregate([
- {$lookup:{
- from: 'cards',
- localField: 'mem_id',
- foreignField: 'mem_id',
- as: 'cards'
- }},
- {$match:{
- 'cards': {$ne:[]}
- }}
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement