Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the graphql apollo cache with a single source of thruth #3

Open
wolfiton opened this issue Aug 12, 2020 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@wolfiton
Copy link

wolfiton commented Aug 12, 2020

Hi,

Question:
Can you also create a Nuxtjs module of your store to replace apollo cache so we can have a single source of truth instead of reaching for Vuex and apollo when dealing with a Graphql stack?

Why:
Because event though Vue-apollo offers support for creating custom resolvers they are not mature, so they create a lot of confusion, and a lot of developers, were forced to use Vuex and apollo cache together. I think we all agree this is not a good way to solve the problem.

Further details on the problem:
Also, have a look at this video presentation for further explanations on the current problem https://www.youtube.com/watch?v=9knwu87IfU8

Possible solution:

Integrating vuex-orm with typescript and vue apollo

https://github.com/vuex-orm/vuex-orm
https://www.npmjs.com/package/vuex-orm-decorators

Your opinion:
What are your opinions on this subject?

Thanks

@hm-lee hm-lee added the enhancement New feature or request label Aug 13, 2020
@hm-lee
Copy link
Contributor

hm-lee commented Aug 13, 2020

It's a very interesting topic.
I'll make time over the weekend to see what I can do with that part. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants