Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.actions.aggregate([
- {
- '$unwind': '$actorId'
- },
- {
- $lookup: {
- from: 'actors',
- localField: 'actorId',
- foreignField: '_id',
- as: 'actor'
- }
- },
- {
- '$unwind': '$actor'
- }
- ]);
- db.actors.aggregate(/* how can I get actions? */);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement