-
-
Save gharriso/9f52ab344d8a943e30db6a5eb43b8932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.Sakila_films.aggregate([ | |
{ $unwind: "$Actors" }, | |
{ $lookup: | |
{ from: "Sakila_actors", | |
localField: "Actors.actorId", | |
foreignField: "actorId", | |
as: "actors" | |
} | |
}, | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment