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

Solve the bug: make Meteor & Vue communicate through Apollo Client / GraphQL Server #1

Merged
merged 1 commit into from Feb 10, 2017

Conversation

xavxyz
Copy link
Contributor

@xavxyz xavxyz commented Feb 9, 2017

Hey @matteodem!

What does this PR:

The OPTIONS issue

I got the OPTIONS issue fixed (apollographql/meteor-integration#59)!

Thanks to apollographql/apollo-client#529 (comment): you can set up the cors at the level of the graphqlExpressServer

My understanding of OPTIONS HTTP Request is limited (I didn't know about them before). It seems that it sent before any CORS request, maybe the graphql-server-xx should accept it with some find of filtering? (hypothesis)

Someone got a similar one, but that didn't get really resolved. apollographql/apollo-server#269

Vue-apollo modifications

At this point, the request was made and I received a response!! 🚀

But as it gave me an error, I thought I could find the error and fix it as well 😙🎶

Thanks to vuejs/apollo#10 (comment), I've de/re structured what's given to the pure TrackList component.

I got a little fancy there, in order to make the component display the expected stuff:

app screenshot

Apollo dependencies update

That was not really needed, but I thought it would be good to be up to date to the latest/checked versions of the different Apollo & cie packages, I've updated them in the Meteor & Vue app.

Conclusion

That was great to understand, try and tackle this issue!! 👍 It's my first experience with Vue, it seems dope!!

Your app looks great, happy hacking man 🎉

…pdate apollo related dependencies, play with vue-apollo (restructuring data in the container 😳)
@matteodem
Copy link
Owner

Thanks a lot dude!

@matteodem matteodem merged commit 9cff511 into matteodem:master Feb 10, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants