GraphQL to the RESTque
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.
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 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.
Correct @dm1try, we front APIs with it. Also read http://artsy.github.io/blog/2016/06/19/graphql-for-mobile/.
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
Established: https://gitlab.com/gitlab-org/gitlab-ce/issues/34754
Hi, someone try to have this?