Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<template>
<-- ...html -->
</template>
<script>
import { POLLS } from '@/gql/queries/poll.queries'
import { VOTE_ON_POLL } from '@/gql/mutations/poll.mutations'
import { OPTION_VOTED } from '@/gql/subscriptions/poll.subscriptions'
import SinglePoll from '@/components/SinglePoll.vue'
export default {
components: {
SinglePoll,
},
apollo: {
polls: {
query: POLLS,
subscribeToMore: {
document: OPTION_VOTED,
}
}
},
// ... code
}
</script>
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.