apollo
apollo copied to clipboard
Allow for a more granular auto-import config
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
Deploy Preview for apollo-module canceled.
Name | Link |
---|---|
Latest commit | 3dc06a1c5b27e701db969a877a7e6b16874d4f8a |
Latest deploy log | https://app.netlify.com/sites/apollo-module/deploys/659271c04fac170008fdef08 |