Skip to content

Instantly share code, notes, and snippets.

@jeffijoe
Created September 6, 2016 09:45
Show Gist options
  • Save jeffijoe/e302af26c71da11efbe801374e5446d6 to your computer and use it in GitHub Desktop.
Save jeffijoe/e302af26c71da11efbe801374e5446d6 to your computer and use it in GitHub Desktop.
Snippet for my Medium article
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