@@ -298,7 +298,7 @@ const where =
298
298
],
299
299
type: ' AND' ,
300
300
};
301
- await redisk .find (User , where , limit , offset );
301
+ await redisk .list (User , where , limit , offset );
302
302
```
303
303
304
304
Returns an array of users where his creation date is greater than the day 23
@@ -313,7 +313,7 @@ const where =
313
313
],
314
314
type: ' AND' ,
315
315
};
316
- await redisk .find (User , where , limit , offset );
316
+ await redisk .list (User , where , limit , offset );
317
317
```
318
318
319
319
#### Multiple conditions
@@ -337,7 +337,7 @@ const where =
337
337
],
338
338
type: ' OR' ,
339
339
};
340
- await redisk .find (User , where , limit , offset );
340
+ await redisk .list (User , where , limit , offset );
341
341
```
342
342
343
343
Returns an array of entities that his color field is 'red' and his food field is 'avocado'
@@ -350,14 +350,14 @@ const where =
350
350
comparator: ' =' ,
351
351
},
352
352
{
353
- key: ' color ' ,
354
- value: ' blue ' ,
353
+ key: ' food ' ,
354
+ value: ' avocado ' ,
355
355
comparator: ' =' ,
356
356
},
357
357
],
358
358
type: ' AND' ,
359
359
};
360
- await redisk .find (User , where , limit , offset );
360
+ await redisk .list (User , where , limit , offset );
361
361
```
362
362
363
363
### Pattern matching
0 commit comments