Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
hello world AOP example refactored
class BookCollection extends Collection {
getNameByISBN(isbn) {
return this.get({
isbn: isbn
}, {
cache: true,
onSuccess: 'name'
onFail: null,
log: {
message: 'Retrieving Book {} - {} has been succeed',
params: ['isbn', 'name'],
level: 'info'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.