Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<b-container class="my-5">
<b-row class="mt-3" v-if="polls && polls.length">
<b-card-group columns>
v-for="poll in polls"
import { POLLS } from '@/gql/queries/poll.queries'
import { VOTE_ON_POLL, CREATE_POLL } from '@/gql/mutations/poll.mutations'
import { OPTION_VOTED, POLL_CREATED } from '@/gql/subscriptions/poll.subscriptions'
import SinglePoll from '@/components/SinglePoll.vue'
import CreatePollModal from '@/components/CreatePollModal.vue'
export default {
// ... code
methods: {
// ... code
handleCreatePoll(pollForm) {
mutation: CREATE_POLL,
variables: {
poll: pollForm,
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.