mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
This PR adds support to specify a from collection within the same database in an inverseMatch aggregation stage.
The spec is as follows:
```
{"$inverseMatch": {"path": <path>, "from": <collection>, "pipeline": <[match | project | limit]> }}
```
Where the input to the inverseMatch evaluation is the result of running the aggregation pipeline against the given collection.