Tag: nuxt3
-
Nuxt3 config for GraphQL queries using separate *.gql files
0 When searching for tutorials on how to perform GraphQL queries in Nuxt 3, I noticed that the query itself is always inside the component where it should be used. Wouldn’t it be much cleaner to store the queries in separate .gql files and use them in components? So far, I haven’t found a corresponding…
-
Using await useAsyncQuery() is returning null in the browser but shows the data value in terminal when console.log(data.value)
0 I’m using Nuxt 3 and fetching data from Strapi with Apollo and graphQL. I have used this similar setup with Prepr in the past with no issues. My GraphQL query is correct and it is returning data but the problem is in the timing. here’s the code I’m using in my page in Nuxt…