Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fetchPolicy not used? #47

Closed
dsbert opened this issue Mar 23, 2017 · 4 comments
Closed

fetchPolicy not used? #47

dsbert opened this issue Mar 23, 2017 · 4 comments

Comments

@dsbert
Copy link

dsbert commented Mar 23, 2017

I am trying to force a cache invalidation and the fetchPolicy appears not to be working.

      await this.$apollo.query({
        fetchPolicy: 'network-only',
        query: this.query,
        variables: {
          id: this.id,
        },
      });
@stubailo
Copy link

Looks like this has a whitelist of options it supports. I think after 1.0 is released with a stable API it will be a good idea to update this package: https://github.com/Akryum/vue-apollo/blob/11d2a1ea0f30375ebb695646e6171390b1d991cb/src/smart-apollo.js#L133

@Samuell1
Copy link

Samuell1 commented Mar 23, 2017

This package is now only for 0.5.x ... update to new api coming soon... see #42

@Akryum
Copy link
Member

Akryum commented Mar 23, 2017

I will update vue-apollo soon to catch up with apollo-client rc.1 😄

@Akryum
Copy link
Member

Akryum commented Mar 26, 2017

@stubailo Actually, this is the blacklist for vue-apollo options, to get the apollo-client ones

@Akryum Akryum closed this as completed Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants