nuxt-modules / apollo

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

Allow adding additional ApolloLinks #494

Open yaquawa opened 1 year ago

yaquawa commented 1 year ago

Your use case

I want to add some additional ApolloLinks to the client.

The solution you'd like

nuxt.config.ts

export default defineNuxtConfig({
  modules: ['@nuxtjs/apollo'],
  apollo: {
    clients: {
      default: {
        httpEndpoint: 'https://api.spacex.land/graphql',
        links: [ // ApolloLink instances]
      },
    },
  },
})

Possible alternatives

No response

Additional information

No response

gijsstegehuis commented 1 year ago

+1

squpshift commented 11 months ago

+1