any + all

This commit is contained in:
JMARyA 2025-05-07 09:03:34 +02:00
parent b1ad069731
commit 89517943f2
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 118 additions and 1 deletions

View file

@ -132,6 +132,18 @@ Evaluates to `true` if the value contains the text.
{ "key": { "$contains": "text" }}
```
### `$any`
Evaluates to `true` if any value matches the filter.
```json
{ "array": { "$any": { "$regex": "text" }}}
```
### `$all`
Evaluates to `true` if all value matches the filter.
```json
{ "array": { "$all": { "$regex": "text" }}}
```
## Misc Operators
### `$type`
Evaluates to `true` if the value matches the specified type.