News for hackers. Stuff that matters.
Re:Show HN: REST Alternative to GraphQL and tRPC by SkyPuncher on Tuesday October 10, 2023 @12:41PM (#37834397)
> My coworker found a GraphQL query only about five layers deep that could tip over a service.

I find arguments like this a bit odd. That's a pretty deep query in REST as well.

I don't have extensive experience with GraphQL, but the complaints I see about it often seem like things you just shouldn't be doing anyways - or, if you do, they're going to be rough in REST as well.

Re:Show HN: REST Alternative to GraphQL and tRPC by anttiviljami on Tuesday October 10, 2023 @01:04PM (#37834653)
I think the point is, graphql apis tend to be so flexible that it’s easy to accidentally ship an API that allows clients to craft excessively heavy nested queries in a single request.

Supporting nested queries isn’t really a common thing in REST, and it’s simpler to rate limit clients by resource than query complexity.