nuxt-modules / apollo

Nuxt.js module to use Vue-Apollo. The Apollo integration for GraphQL.
https://apollo.nuxtjs.org
MIT License
955 stars 198 forks source link

fix: cache value false to rewrite default cache policy #625

Open Stanislavsonder opened 5 months ago

Stanislavsonder commented 5 months ago

Now cache: false is not affecting on the query policy. So, if the application has 'cache-first' and you need a query with disabled caching, it is not feasible to achieve. This small fix should allow to do it.

sneakylenny commented 5 months ago

I need this too, I was even thinking about allowing to set the fetchPolicy manually. But I don't know if there's a reason it was decided to turn it into a boolean.

Try adding reviewers that are able to merge this.

Stanislavsonder commented 5 months ago

Looks like I have no rights to add reviewers here :D All that I can do is ping folks and ask them to check. I am just wondering if this repo is still alive :D @Diizzayy @danielroe

@timyourivh As a workaround, you can try to use "5.0.0-alpha.11" for now, which does not apply changes. But to be honest this cache issue is not my biggest problem with this module :)

awacode21 commented 3 months ago

Hi guys, we are also dealing with the issue, BUT i think even this PR is not enough. Please see bug ticket: https://github.com/nuxt-modules/apollo/issues/631

Stanislavsonder commented 3 months ago

@awacode21 GOOD LUCK :D