docs(llc): add documentation for new filters

This commit is contained in:
Salvatore Giordano
2021-09-07 10:37:13 +02:00
parent fe73cf0b71
commit 3e1d5f7f92
@@ -107,6 +107,36 @@ The 'exists' filter matches values that exist, or don't exist, based on the spec
Filter.exists('name', true)
```
#### Filter.contains
The 'contains' filter matches any list that contains the specified value.
```dart
Filter.contains('teams', 'red')
```
#### Filter.empty
The 'empty' filter constructor returns an empty filter. It's the equivalent of an empty map `{}`;
```dart
Filter.empty();
```
#### Filter.raw
The 'raw' filter constructor lets you specify a raw filter. We suggest using this only if you can't manage to build what you want using the other constructors.
```dart
Filter.raw(value: {
'members': [
..._selectedUsers.map((e) => e.id),
chatState.currentUser!.id,
],
'distinct': true,
});
```
### Group Queries
#### Filter.and