News for hackers. Stuff that matters.
Re:GraphQL kinda sucks by Aeolun on Saturday August 06, 2022 @08:58PM (#32372919)
That’s weird. You explicitly choose what to add to your GraphQL API too. If you’re just setting up a random library that exposes your entire database, that’s no fault of GraphQL.
Re:GraphQL kinda sucks by dhritzkiv on Sunday August 07, 2022 @12:42AM (#32373955)
Yeah, I caught that too. A lot of comments sounds like they're relying on Prisma/Husara/etc. to map directly to the database. I'm sure it's fine for some use cases (such as when prototyping), but I prefer to design and build out GraphQL APIs with a more UI/product-centric approach, which hide most of the database details.
Re:GraphQL kinda sucks by mbfg on Saturday August 06, 2022 @11:51PM (#32373751)
I think it's a marketing problem. GraphQL can easily sound like "Give the entire schema to your users and let them decide what to query for". If you look at various GraphQL supportive websites, that is a common anthem. You don't get that marketing from REST. REST says "decide what's good for them".

Obviously you can do either in either. But i definitely think the marketing is world's apart.

So when people come to a problem, if they are not super strong in their understanding of what will be a good solution, they generally implement what the platform markets.