grape icon indicating copy to clipboard operation
grape copied to clipboard

GraphQL to the RESTque

Open dmitry opened this issue 9 years ago • 6 comments

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.

dmitry avatar Sep 15 '16 13:09 dmitry

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).

dblock avatar Sep 15 '16 15:09 dblock

@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.

dmitry avatar Sep 15 '16 15:09 dmitry

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

dblock avatar Sep 15 '16 16:09 dblock

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

orta avatar Jul 25 '17 20:07 orta

Established: https://gitlab.com/gitlab-org/gitlab-ce/issues/34754

dmitry avatar Aug 19 '17 19:08 dmitry

Hi, someone try to have this?

djpremier avatar Nov 06 '25 23:11 djpremier