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

Any chance of hooking in Quasar with GraphQL? #11

Closed
smolinari opened this issue Jul 4, 2016 · 7 comments
Closed

Any chance of hooking in Quasar with GraphQL? #11

smolinari opened this issue Jul 4, 2016 · 7 comments

Comments

@smolinari
Copy link
Collaborator

I really like the work being done here.

Has there been any thought to hook GraphQL communications to the server to get persisted state with Quasar?

Scott

@rstoenescu
Copy link
Member

Thanks for the appreciation!

You can include GraphQL in your application as a dependency. I saw they have an NPM package that you can install for the client side (https://www.npmjs.com/package/graphql) to import a dependency here: http://quasar-framework.org/guide/importing-dependencies.html

It would be best to hold on for the next update to Quasar which will add Babel support and a brand new build system for even better speed and (besides many other advantages) making the importing a dependency super easy. vue-loader is also on the table.

@smolinari
Copy link
Collaborator Author

smolinari commented Jul 4, 2016

Sounds good. My "dream" is more about getting GraphQL to jive with Vuex. I've been following a couple of other projects, namely Apollo and Meteor-Vue-Component. Apollo is made specifically for GraphQL, but it doesn't yet work with Vue and they use Redux as the store, which isn't the best way to jive with Vue from what I understand, although Vue 2.0 should do better with Redux. And the meteor-vue-component only works with Meteor, from what I understand. So, that's a no-go for me.

If Quasar could work directly with Apollo, through Vuex, that would be my dream come true. 😄

At any rate. Thanks for listening and responding.

Scott

@rstoenescu
Copy link
Member

I see. Well, for the time being, Quasar 0.4.0 has Vuex installed by default. You can npm install apollo-client and/or graphql and use them. Make sure you tell Quasar that you'd like them included (see the Importing Dependencies link I posted earlier). Basically you can use ANY front-end libs you like with Quasar.

After the next big update (that I'm currently working on), managing ANY dependency will be super easy and straightforward and way simplified.

Razvan

@smolinari
Copy link
Collaborator Author

Great. And I'll hit the books some more.

Is there a way I can reach you privately by chance?

Scott

@rstoenescu
Copy link
Member

You got my email on https://github.com/rstoenescu

@smolinari
Copy link
Collaborator Author

Hey Razvan @rstoenescu ,

Just FYI.

https://github.com/Akryum/vue-apollo

And Akryum said he'll be working on a vuex implementation too.

Yes!!!!

Scott

@rstoenescu
Copy link
Member

That's great!!! Thx for letting me know.

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

No branches or pull requests

2 participants