Comment

Comment by brillout

Instead of Hasura and GraphQL, you can use RPC and directly write SQL queries to retrieve and mutate data.

One way to think about this is that with RPC you remove the whole API layer and directly write SQL queries instead, while permissions are defined programmatically on a case-by-case basis. This is much simpler than Hasura!

For Node.js there is https://github.com/reframejs/wildcard-api.

For other backends you can implement JSON endpoints (https://github.com/reframejs/wildcard-api/blob/master/docs/b...)

While scaling to a large company, you progressively migrate from RPC to GraphQL (with or without Hasura).

parent brillout 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton