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

move from rest to graphql #101

Open
DGKSK8LIFE opened this issue May 18, 2020 · 2 comments
Open

move from rest to graphql #101

DGKSK8LIFE opened this issue May 18, 2020 · 2 comments

Comments

@DGKSK8LIFE
Copy link

No description provided.

@roymoran
Copy link
Member

@DGKSK8LIFE how much effort is this? to start I might just explore gaphql for new services that get written.

@DGKSK8LIFE
Copy link
Author

@DGKSK8LIFE how much effort is this? to start I might just explore gaphql for new services that get written.

Well, you have to primarily get accustomed to a new way of thinking. The way graphql works is much different than rest. With graphql, you serve all your data under one route, and it's always generated in a POST request, the reason for this is because the client sends query schema instead of filtering through all the data like rest. One thing you'll have to get used to in Graphql as well, is that HTTP methods other than POST aren't used; and url arguments + query strings don't matter anymore.

SO TL;DR
It may be harder to get the hang of, at first, but the reward of having graphql implemented certainly outweighs the challenge.

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