You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// data will be [{ id: 1, name: 'Arnold' }] and total will be 1
104
104
```
105
105
106
-
The filtering capabilities are very limited. For instance, there is no "greater than" or "less than" operator. You can only filter on the equality of a field.
106
+
The filtering capabilities are very limited. A filter on a field is a simple string comparison. There is no "greater than" or "less than" operator. You can do a full-text filter by using the `q` filter.
107
+
108
+
```jsx
109
+
const { data, total } =useList({
110
+
data: [
111
+
{ id:1, name:'Arnold' },
112
+
{ id:2, name:'Sylvester' },
113
+
{ id:3, name:'Jean-Claude' },
114
+
],
115
+
filter: { q:'arno' },
116
+
});
117
+
// data will be [{ id: 1, name: 'Arnold' }] and total will be 1
0 commit comments