apollo icon indicating copy to clipboard operation
apollo copied to clipboard

apollo client v3

Open productdevbook opened this issue 4 years ago • 5 comments

When updated nuxt apollo module ?

productdevbook avatar Aug 31 '21 04:08 productdevbook

I don't think it makes sense to change this module until vue-apollo 4 is stable and until the release of @nuxt/module-utils (or @nuxt/kit, idk) Note that vue-cli-plugin-apollo has not yet been updated.

If you don't like waiting either, like me. I created a small repository with a demo of Apollo 3 with Composition API. The only thing I didn't do was inject the helpers into the context. All you need is to install @vue/apollo-composable with the https://github.com/vuejs/vue-apollo/pull/1241 fix. Steps for packing a fix, clone the repository:

yarn install
yarn build
cd packages/vue-apollo-composable
yarn pack

After upload "vue-apollo-composable-v4.0.0-alpha.14.tgz" to the release on GitHub and install it as an NPM package.

If you need uploads and subscriptions, they are easily added with apollo-upload-client and graphql-ws (or not being actively maintained subscriptions-transport-ws)

negezor avatar Aug 31 '21 19:08 negezor

@negezor there is lots of error cause of this module, can use vue apollo instead of this nuxt?

honeyamin avatar Sep 16 '21 03:09 honeyamin

@honeyamin The solution above is already working for me in production. I haven't noticed any other errors yet.

negezor avatar Sep 16 '21 08:09 negezor

@negezor https://github.com/vuejs/vue-apollo/pull/1241 fixed

productdevbook avatar Oct 14 '21 12:10 productdevbook

See https://github.com/nuxt-community/apollo-module/issues/413#issuecomment-1199892664 for a related announcement. I'd recommend to continue following this thread's discussion over there.

dargmuesli avatar Jul 29 '22 19:07 dargmuesli