mirror of
https://github.com/carlospolop/hacktricks
synced 2024-11-25 22:20:43 +00:00
Merge pull request #807 from heinosasshallik/patch-4
Update nosql-injection.md: clarify aggregate() requirement
This commit is contained in:
commit
cee05a9786
1 changed files with 2 additions and 0 deletions
|
@ -125,6 +125,8 @@ Using the **$func** operator of the [MongoLite](https://github.com/agentejo/cock
|
|||
|
||||
It's possible to use [**$lookup**](https://www.mongodb.com/docs/manual/reference/operator/aggregation/lookup/) to get info from a different collection. In the following example, we are reading from a **different collection** called **`users`** and getting the **results of all the entries** with a password matching a wildcard.
|
||||
|
||||
**NOTE:** `$lookup` and other aggregation functions are only available if the `aggregate()` function was used to perform the search instead of the more common `find()` or `findOne()` functions.
|
||||
|
||||
```json
|
||||
[
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue