nuxt-modules / apollo

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

feat: add support for queryDeduplication apollo config option #559

Open rebeccarich opened 11 months ago

rebeccarich commented 11 months ago

Adds support for setting queryDeduplication: true|false on the ApolloClient instance as documented here.

Defaults to true inline with the Apollo Client default.

export default defineNuxtConfig({
  modules: ['@nuxtjs/apollo'],
  apollo: {
    queryDeduplication: true,
    ...
  }
})

It is useful to turn off queryDeduplication when you are relying on headers to differentiate between requests since this will not be recognised as a new query by Apollo Client.

Thanks for all your work on this module!

netlify[bot] commented 11 months ago

Deploy Preview for apollo-module ready!

Name Link
Latest commit 0d8eeff74e4e72d052b558ef564de8250718c7f1
Latest deploy log https://app.netlify.com/sites/apollo-module/deploys/65e22877ad4e900008145dd0
Deploy Preview https://deploy-preview-559--apollo-module.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.