We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6cf7246 + a8ca164 commit 7e9785aCopy full SHA for 7e9785a
pages/index.vue
@@ -1,5 +1,15 @@
1
<template>
2
<div>
3
<IndexHero />
4
+ <div v-if="data.products">
5
+ <ProductsShowAll :products="data.products.nodes" />
6
+ </div>
7
</div>
8
</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