Skip to content

Instantly share code, notes, and snippets.

@Deeptiman
Created November 7, 2021 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deeptiman/35dd79d607afb87f2effcf642ab6a30e to your computer and use it in GitHub Desktop.
Save Deeptiman/35dd79d607afb87f2effcf642ab6a30e to your computer and use it in GitHub Desktop.
{
$lookup:
{
from: <collection to join>,
localField: <field from the input documents>,
foreignField: <field from the documents of the "from" collection>,
as: <output array field>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment