Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import * as pollService from '../services/poll.service'
export default {
queries: {
polls() {
return pollService.findAll().catch()
mutations: {
createPoll(parent, args) {
return pollService.create(args.poll).catch();
voteOnPoll(parent, args) {
return pollService.voteOnPoll(args.optionId).catch();
subscriptions: {},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.