Skip to content

Commit 81ceb12

Browse files
committed
📝 Update README
1 parent 144e123 commit 81ceb12

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const where =
298298
],
299299
type: 'AND',
300300
};
301-
await redisk.find(User, where, limit, offset);
301+
await redisk.list(User, where, limit, offset);
302302
```
303303

304304
Returns an array of users where his creation date is greater than the day 23
@@ -313,7 +313,7 @@ const where =
313313
],
314314
type: 'AND',
315315
};
316-
await redisk.find(User, where, limit, offset);
316+
await redisk.list(User, where, limit, offset);
317317
```
318318

319319
#### Multiple conditions
@@ -337,7 +337,7 @@ const where =
337337
],
338338
type: 'OR',
339339
};
340-
await redisk.find(User, where, limit, offset);
340+
await redisk.list(User, where, limit, offset);
341341
```
342342

343343
Returns an array of entities that his color field is 'red' and his food field is 'avocado'
@@ -350,14 +350,14 @@ const where =
350350
comparator: '=',
351351
},
352352
{
353-
key: 'color',
354-
value: 'blue',
353+
key: 'food',
354+
value: 'avocado',
355355
comparator: '=',
356356
},
357357
],
358358
type: 'AND',
359359
};
360-
await redisk.find(User, where, limit, offset);
360+
await redisk.list(User, where, limit, offset);
361361
```
362362

363363
### Pattern matching

0 commit comments

Comments
 (0)