Skip to content

Instantly share code, notes, and snippets.

@jeffijoe
Created September 6, 2016 09:45
Show Gist options
  • Save jeffijoe/7055c36ffe556c17e620585d24566c5f to your computer and use it in GitHub Desktop.
Save jeffijoe/7055c36ffe556c17e620585d24566c5f to your computer and use it in GitHub Desktop.
Snippet for my Medium article
export default function makeTodosService ({ db }) {
return {
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