Gomah / nuxt-graphql-request

Easy Minimal GraphQL client integration with Nuxt.js.
https://nuxt-graphql-request.vercel.app
MIT License
196 stars 16 forks source link

works with nuxt fetch ? #20

Closed cfab closed 3 years ago

cfab commented 3 years ago

Hello, this is a question not an issue ;-) As I'm struggling with nuxt apollo module with full static, I saw your package as an alternative. The docs says that it works with asyncData but is it working with nuxt fetch (https://nuxtjs.org/docs/2.x/components-glossary/pages-fetch) so that I can fetch data from components too ? Thank you.

Edit: It perfectly works in case this interest someone ;-)

drewbaker commented 3 years ago

Yes it works with fetch and asyncData and nuxtServerInit too. See here: https://github.com/funkhaus/fuxt