News for hackers. Stuff that matters.
Re:On GraphQL-to-SQL by criddell on Friday May 22, 2020 @01:32PM (#23274697)
> Hasura tackles this by providing a model level authorization layer

Why does Hasura need to know about the authorization model? Graphql.org's best practices guide[1] says authorization should be in the business layer and should be a single source of truth. In other words, GraphQL responses should be going through the same authorization module as REST or RPC responses.

[1] https://graphql.org/learn/thinking-in-graphs/#business-logic...

Re:On GraphQL-to-SQL by btown on Friday May 22, 2020 @02:39PM (#23275428)
Hasura is designed to implement the entirety of the Business Logic Layer - it provides an interface directly on top of Postgres. Certainly this isn't appropriate for certain applications, though https://hasura.io/blog/custom-business-logic/ makes it very versatile. But for many line-of-business applications it's ideal.
Re:On GraphQL-to-SQL by amaranth on Friday May 22, 2020 @03:25PM (#23275919)
That only works if your API access is all or nothing. The existing authorization tooling will just see everything as requests to `/graphql`. If you want per-query or even per-field permissions you need to do something inside the GraphQL layer.