dotansimha / graphql-code-generator-community

MIT License
118 stars 153 forks source link

vue-apollo-smart-ops does not respect useTypeImport #145

Open P4sca1 opened 3 years ago

P4sca1 commented 3 years ago

The @graphql-codegen/typescript-vue-apollo-smart-ops plugin does not use type-online imports for vueAppTypeImportFrom and vueApolloErrorTypeImportFrom when useTypeImports is set to true.

P4sca1 commented 3 years ago

In addition to that createSmartSubscriptionOptionsFunction should not be imported, when there are no subscriptions defined (the same applies to createMutationFunction and createSmartQueryOptionsFunction).