Created
September 6, 2016 09:45
-
-
Save jeffijoe/e302af26c71da11efbe801374e5446d6 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
import db from '../mydatabase' | |
export default { | |
getTodos: () => { | |
return db.query('select * from todos') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment