Hacker News new | ask | show | jobs
by genuine_smiles 2236 days ago
If you're not using rails to create an API server, and you've only got a single database, then I'm not sure there's any value in GraphQL.

My (limited) understanding is that GraphQL is great for writing database agnostic queries, and writing queries that will be run from an untrusted source, like a client.

1 comments

Thanks for the tip. I don't need an API server (yet). Our app is driven by a lot of SQL. We end up with a lot of functions which are business_logic, business_logic_with_joins, business_logic_with_different_joins. I'm most interested in avoiding N+1 queries and letting the page ask for the attributes / relations it needs. GraphQL seemed like reasonable solution for that.