logaretm / villus

🏎 A tiny and fast GraphQL client for Vue.js
https://villus.dev
MIT License
790 stars 31 forks source link

Documentation : it is not explained that cache() is loaded by default #171

Closed alasserr closed 2 years ago

alasserr commented 2 years ago

I spent some time to understand why my 'execute()' query did not work. Then I understood that the cache() plugin is loaded by default. When loading villus with :

useClient({
  ..
  use: [fetch()]
});

and then not declaring on purpose the cache() plugin, the execute() is now working (it's a simple query, but I needed it to use the nework). Should be added on the public documentation ...

Also, I still did not understand how to declare the cache policy.

Thanks anyway for your work on villus, great stuff (once one knows how to deal with cache ;) )

alasserr commented 2 years ago

Well I'm just blind everything is explained here : https://villus.logaretm.com/guide/queries/ , "Caching" section. Sorry.