Vue-apollo: fetchPolicy not used?

Created on 23 Mar 2017  路  4Comments  路  Source: vuejs/vue-apollo

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,
        },
      });

Most helpful comment

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

All 4 comments

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

This package is now only for 0.5.x ... update to new api coming soon... see https://github.com/Akryum/vue-apollo/issues/42

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

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

Was this page helpful?
0 / 5 - 0 ratings