Last active
February 14, 2019 04:09
-
-
Save dgadiraju/18d6e03109b24401bcdc996f70c87e72 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.orders.aggregate([ | |
{ | |
$lookup: | |
{ | |
from: "orderItems", | |
localField: "order_id", | |
foreignField: "order_item_order_id", | |
as: "order_item_details" | |
} | |
} | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment