Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<template>
<b-container v-if="polls && polls.length" class="my-5">
<b-row>
<b-col>
<b-btn>Create Poll</b-btn>
</b-col>
</b-row>
<b-row class="mt-3">
<b-col>
<b-card-group columns>
<SinglePoll
v-for="poll in polls"
:key="`poll-${poll.id}`"
:poll="poll"
/>
</b-card-group>
</b-col>
</b-row>
</b-container>
</template>
<script>
import { POLLS } from '@/gql/queries/poll.queries'
import SinglePoll from '@/components/SinglePoll.vue'
export default {
components: {
SinglePoll,
},
apollo: {
polls: {
query: POLLS,
}
},
}
</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.