Closed bastianhilton closed 1 year ago
So I found the issue to my problem:
Basically my v-for statement wasn't correct
I just had v-for "departments in departments" :key="departments.id"
it should read v-for="departments in data.departments.data" :key="departments.id"
Because my query is this:
query {
departments {
data {
id
attributes {
Name
}
}
}
I'm using Strapi + Strapi's Graphql Plugin btw
Environment
Nuxt 3 "latest" Windows 11 @nuxtjs/apollo
Describe the bug
I'm able to see that the data is coming through in the Dev Console however nothing is showing on the frontend no matter what graphql endpoint I use.
Expected behaviour
Data to be shown on the frontend.
Reproduction
Install nuxt Install @nuxtjs/apollo module within a .vue page, add details as seen above.
in my nuxt.config.js file:
Additional context
No response
Logs
No response