apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Allow for a more granular auto-import config

Open Eazash opened this issue 1 year ago • 1 comments

This PR adds the ability to selectively disable auto-imports for the gql function or vue-apollo composables.

export default defineNuxtConfig({
// ...
  apollo: {
    autoImports: {
      gql: false,
      'vue-apollo': true
    },
})

The motivation is to allow for custom autoimports for the gql function from other sources. One particular use case is when looking to add an autoimport from the autogenerated tag function provided by graphql-codegen that is typesafe

Eazash avatar Jan 01 '24 08:01 Eazash

Deploy Preview for apollo-module canceled.

Name Link
Latest commit 3dc06a1c5b27e701db969a877a7e6b16874d4f8a
Latest deploy log https://app.netlify.com/sites/apollo-module/deploys/659271c04fac170008fdef08

netlify[bot] avatar Jan 01 '24 08:01 netlify[bot]