Created
September 6, 2016 09:46
-
-
Save jeffijoe/d40e891896a04d7292aba8e1c544afe6 to your computer and use it in GitHub Desktop.
Snippet for my Medium article
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class TodosService { | |
constructor({ db }) { | |
this.db = db | |
} | |
getTodos() { | |
return this.db.query('select * from todos') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment