jlouis / graphql-erlang

GraphQL implementation in Erlang.
Other
313 stars 52 forks source link

Translate GraphQL qureries to SQL #197

Closed benbro closed 5 years ago

benbro commented 5 years ago

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.

jlouis commented 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:

benbro commented 5 years ago

Thanks