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'

This comment has been minimized.

Copy link

@tonix-tuft tonix-tuft commented Apr 11, 2020

Where can we see the implementation for Collection? Thanks!

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.