3 ms·
> I'm skeptical of anything whose central claim is "I can easily turn front end data requests into SQL and back again in very few lines of code". Same for me.
by cies 4y ago
> I'm skeptical of anything whose central claim is "I can easily turn front end data requests into SQL and back again in very few lines of code".
Same for me. The Elm video is showing off a toy, an interesting toy, but a toy. The presenter also says it's for now only useful for fun projects.
Something with a more mature backend in the same direction would Hasura (a GraphQL and authorization layer over Postgres) with a generated-from-the GraphQL-spec client library. A generator for Elm exists (which give you strong type-safety over the API barrier).
It does lead to a situation where SQL barely used. The GraphQL used to query the db is very SQL-like though :)
- camgunz 4y agoI absolutely love Hasura. I basically never want to write a backend API again after using it. But yeah it is a GraphQL to SQL compiler (and yeah all the attributes are like "where", "aggregate", it obviously is SQL-in-GraphQL), which... yeah let's just use SQL everyone, come on.