mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
add filter operators
This commit is contained in:
@@ -42,6 +42,31 @@
|
||||
}
|
||||
```
|
||||
|
||||
## Supported Operators
|
||||
|
||||
| Operator | Description |
|
||||
| -------------------- | -------------------------------------- |
|
||||
| `eq` | Equal to |
|
||||
| `neq` | Not equal to |
|
||||
| `lt` | Less than |
|
||||
| `lte` | Less than or equal to |
|
||||
| `gt` | Greater than |
|
||||
| `gte` | Greater than or equal to |
|
||||
| `in` | Exists in one of the values |
|
||||
| `nin` | Not in one of the values |
|
||||
| `null` | It is null |
|
||||
| `nnull` | It is not null |
|
||||
| `contains`, `like` | Contains the substring |
|
||||
| `ncontains`, `nlike` | Doesn't contain the substring |
|
||||
| `rlike` | Contains a substring using a wildcard |
|
||||
| `nrlike` | Not contains a substring using a wildcard |
|
||||
| `between` | The value is between two values |
|
||||
| `nbetween` | The value is not between two values |
|
||||
| `empty` | The value is empty (null or falsy) |
|
||||
| `nempty` | The value is not empty (null or falsy) |
|
||||
| `all` | Contains all given related item's IDs |
|
||||
| `has` | Has one or more related items's IDs |
|
||||
|
||||
## Relational
|
||||
|
||||
You can target related values by nesting field names. For example, if you have a relational [Many-to-One](#)
|
||||
|
||||
Reference in New Issue
Block a user