dotansimha / dotansimha/graphql-code-generator-community

Vue3 compatibility for vue-apollo-smart-ops

Open
#179 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

**Is your feature request related to a problem? Please describe.**

Currently, [TypeScript Vue Apollo Smart Operations
](https://www.graphql-code-generator.com/plugins/typescript-vue-apollo-smart-ops) imports [vue-apollo-smart-ops](https://www.npmjs.com/package/vue-apollo-smart-ops) upon file generation

The issue is [vue-apollo-smart-ops](https://www.npmjs.com/package/vue-apollo-smart-ops)'s dependency is using [vue-apollo v3](https://www.npmjs.com/package/vue-apollo) (only supports Vue2) and will trigger an error below:

![image](https://user-images.githubusercontent.com/55234616/159527500-0911f373-ced9-490c-8d68-8527a94fcfd1.png)

**Describe the solution you'd like**

Hence, I hope to see [vue-apollo-smart-ops](https://www.npmjs.com/package/vue-apollo-smart-ops)'s dependency updated to [vue-apollo v4](https://v4.apollo.vuejs.org/) with support for Vue3

**Describe alternatives you've considered**

For now, the workaround seems to be using [TypeScript Vue Urql](https://www.graphql-code-generator.com/plugins/typescript-vue-urql) which works well~!

**Additional context**

vue-apollo v4 package in [alpha](https://www.npmjs.com/package/@vue/apollo-option)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.