Closed benbro closed 5 years ago
First, we don't think blind translation from GraphQL to SQL is a good approach. We've found that such a solution has a lot of limitations. To wit:
As an example, Shopguns schema straddles Graph Databases, SQL, Message Queues, and Search Engines.
So there are no immediate plans. However:
Ctx
would contain functionality to query into the deeper structure in order to obtain hints about the future execution. This could guide, e.g., eager loading of data for the current node, rather than relying on a reactive approach as is the Data Loader.Thanks
PostGraphile use look-ahead and Hasura translate GraphQL queries to SQL instead of using resolvers and batch loading. Are there plans to go in this direction? Being able to do it in erlang with authorization, middlewares and rate limiting might be very useful.