add filter operators

This commit is contained in:
Ben Haynes
2020-11-12 11:33:27 -05:00
parent 982fa6aded
commit f0d2b61039

View File

@@ -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](#)