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

GraphQL to the RESTque #1491

Open
dmitry opened this issue Sep 15, 2016 · 5 comments
Open

GraphQL to the RESTque #1491

dmitry opened this issue Sep 15, 2016 · 5 comments
Labels

Comments

@dmitry
Copy link
Contributor

dmitry commented Sep 15, 2016

Did anyone had an idea to implement GraphQL along with REST API?

Looks like when there are https://github.com/ruby-grape/grape-entity in the existing project, adding GraphQL could be done very easily (once it will be implemented).

Lets discuss future opportunities once GraphQL will be implemented within grape.

@dblock
Copy link
Member

dblock commented Sep 15, 2016

I definitely think a graphql implementation on top of Grape could be cool, even if it's tightly coupled. At @artsy we've been putting node.js middleware in front of multiple API services. Our implementation is https://github.com/artsy/metaphysics (not Ruby).

@dmitry
Copy link
Contributor Author

dmitry commented Sep 15, 2016

@dblock as I understand from the first glance looking into the metaphysics source code it works in the following way: once graphql query goes to the server, it resolves data from REST API and responds back to graphql requester? So it never access the database directly.

@dblock
Copy link
Member

dblock commented Sep 15, 2016

Correct @dm1try, we front APIs with it. Also read http://artsy.github.io/blog/2016/06/19/graphql-for-mobile/.

@orta
Copy link
Contributor

orta commented Jul 25, 2017

There's been some great discussion on the GitLab issues about potentially making a graphql-grape gem: https://gitlab.com/gitlab-org/gitlab-ce/issues/22753#note_32230765

@dmitry
Copy link
Contributor Author

dmitry commented Aug 19, 2017

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

No branches or pull requests

3 participants