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

feat: add support for queryDeduplication apollo config option #559

Open
wants to merge 2 commits into
base: v5
Choose a base branch
from

Conversation

rebeccarich
Copy link

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
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for apollo-module ready!

Name Link
🔨 Latest commit 0d8eeff
🔍 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.

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

Successfully merging this pull request may close these issues.

None yet

2 participants