Skip to content

DOCS-14111 localField foreignField with lookup #5000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions source/includes/fact-let-variable-access-note.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@
:query:`$expr` allows the use of aggregation expressions
inside of the :pipeline:`$match` syntax.

Without the use of the :query:`$expr` operator, :pipeline:`$match`
can refer to fields in a document but cannot access variables
defined by a :pipeline:`$lookup` :ref:`let <lookup-join-let>`
clause.

The :query:`$expr` operator only uses indexes on the ``from``
collection for equality matches. Non-equality match queries, such
as range queries, cannot use indexes on the ``from`` collection.
The :query:`$expr` operator only uses indexes on the joined
``from`` collection for equality matches. Non-equality match
queries, such as range queries, cannot use indexes on the joined
``from`` collection.

- Other (non-:pipeline:`$match`) stages in the :ref:`pipeline
<lookup-join-pipeline>` do not
Expand Down
Loading