feature: .all() to iterate over all objects in a collection
This commit is contained in:
parent
bf2bec0c3d
commit
56715a1400
5 changed files with 147 additions and 5 deletions
|
@ -9,7 +9,8 @@ optimization to the filesystem layer.
|
|||
`collection.get(id) : T` - gets an object of type T based on the id field configured
|
||||
`collection.update(T)` - updates an object of type T, saving it to the disk
|
||||
`collection.delete(T)` - removes an object from the system and the disk
|
||||
`collection.find(criteria)` - find all objects that match the criteria *that have an index*
|
||||
`collection.all([options])` - iterate over all objects
|
||||
`collection.find(criteria[, options])` - find all objects that match the criteria *that have an index*
|
||||
|
||||
### Example
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue