Skip to content

Commit 26723c6

Browse files
committed
Show products
1 parent f4bf892 commit 26723c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pages/index.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<template>
22
<div>
33
<IndexHero />
4+
<div v-if="data.products">
5+
<ProductsShowAll :products="data.products.nodes" />
6+
</div>
47
</div>
58
</template>
9+
10+
<script setup>
11+
import FETCH_ALL_PRODUCTS_QUERY from "@/apollo/queries/FETCH_ALL_PRODUCTS_QUERY.gql";
12+
13+
const variables = { limit: 5 };
14+
const { data } = await useAsyncQuery(FETCH_ALL_PRODUCTS_QUERY, variables);
15+
</script>

0 commit comments

Comments
 (0)