Skip to content

Commit

Permalink
Continue documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JASchilz committed Sep 6, 2016
1 parent b54ed11 commit 7123153
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,29 @@ myAuthor2.save()
);
```

Retrieving an instance from the database:
```
// Retrieve the author with id 4, then log their name
db.authors(4)
.get
.then(
function(author) {
console.log(author.getFirstName());
}
);
```

Deleting an instance from the database:
```
db.authors(4)
.delete
.then(
function() {
console.log("Deleted an author."
}
);
```

Compatibility
=============

Expand Down

0 comments on commit 7123153

Please sign in to comment.