News for hackers. Stuff that matters.
Re:GraphQL Is a Trap? by travisd on Friday May 06, 2022 @10:49AM (#31285805)
There are products that do that! Hasura comes to mind.

But APIs can have different use cases. It’s usually considered bad to directly expose your table schema over GraphQL because it locks you in and makes it hard to change your data model over time. And not all API access is “get this data” and “set this data” — it can be difficult to express complex logic in just a database. And of course, some GraphQL APIs aren’t backed by a database - they’re backed by other services (a la the “backend for frontend” pattern).

I’m very pro choosing the simplest solution that works — but sometimes, the simplest solution does bring some complexity in exchange for other trade offs (like flexibility).

Re:GraphQL Is a Trap? by lexx on Friday May 06, 2022 @11:34AM (#31286383)
I agree with you. I am currently working on a project that need to give very sophisticated querying capabilities, so I'm kind of seeing everything from that prism.