From 728b881ac1e06770ecce1bef3ecb78c0fd84c266 Mon Sep 17 00:00:00 2001 From: Franco Colmenarez Date: Wed, 15 Sep 2021 12:30:13 -0500 Subject: [PATCH] Lookup --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7640d1c..e95a31f 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Mongo doesn't require schema or relations but if you need to, you can have them. `Many-to-many` is also the same concept but with arrays. The issue is that we might have to update each embedded document in case some information changes. It is better to use references in this case. [More about relationships here](https://docs.mongodb.com/manual/applications/data-models-relationships/) +You can also have JOIN-like queries with `$lookup`, learn more [here](https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/#mongodb-pipeline-pipe.-lookup) # Projections Sometimes we don't need the whole document, just a few data, so we can select just the data we need in the second parameter like so: