Re:Graphql-Up: CLI to create a ready-to-use GraphQL API
by jlouis on Tuesday March 14, 2017 @09:18PM
(#13873061)
Squint your eyes a lot!
A GraphQL query is just a query on some objects having some fields. You can tie any function to a field. In particular, you can have each field be a function which executes SQL code. And that code is free to JOIN as it wants.
Squint your eyes some more: how do you do it in a RESTful interface? It is the same idea.
GraphQL really excels, however, in that it is not tied to SQL. You can have part of the query be from one source, and other parts be from other sources.
A GraphQL query is just a query on some objects having some fields. You can tie any function to a field. In particular, you can have each field be a function which executes SQL code. And that code is free to JOIN as it wants.
Squint your eyes some more: how do you do it in a RESTful interface? It is the same idea.
GraphQL really excels, however, in that it is not tied to SQL. You can have part of the query be from one source, and other parts be from other sources.