Skip to content

Commit 245a9e6

Browse files
authored
Add documentation for LIST.
1 parent 8ae02f4 commit 245a9e6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,20 @@ db.authors(4)
489489
);
490490
```
491491

492+
You can retrieve multiple instances from the database by doing a GET without specifying an ID. Here, we search for all authors with the first name John. The resulting collection `authors` supports a jQuery style `each`:
493+
```
494+
db.authors()
495+
.setFirstName('John')
496+
.get()
497+
.then(
498+
function(authors) {
499+
authors.each(function(author) {
500+
console.log('Found author John ' + author.getLastName() + '.');
501+
});
502+
}
503+
);
504+
```
505+
492506
Compatibility
493507
=============
494508

0 commit comments

Comments
 (0)