refactor: update to nuxt-graphql 0.5.x
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
const { path: uri } = useRoute();
|
||||
const { data } = await useGraphQLQuery("NodeByUri", { uri });
|
||||
const { data } = await useAsyncGraphQLQuery("NodeByUri", { uri });
|
||||
|
||||
// Resolve and validate Node component
|
||||
if (!data.value.nodeByUri) {
|
||||
|
||||
Reference in New Issue
Block a user