Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow
Created March 10, 2019 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LazyFatArrow/0b1e8d07ce3c3bba3dcaa11c27262c54 to your computer and use it in GitHub Desktop.
Save LazyFatArrow/0b1e8d07ce3c3bba3dcaa11c27262c54 to your computer and use it in GitHub Desktop.
import * as PersonApi from '../api/person.api'
export default {
queries: {
people: () => PersonApi.findAll()
},
mutations: {
createPerson: async (parent, args) => {
const person = await PersonApi.create(args)
return person
}
},
subscriptions: {},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment