News for hackers. Stuff that matters.
Re:Where in the HypeCycle is GraphQL? by alephu5 on Tuesday July 13, 2021 @12:34PM (#27823037)
> With GraphQL, I can generate most of my client libraries while, and when I am writing a web client using typescript, I have full type checking on my apps. This makes me as a solo developer so much faster than using rest, with 0 client library generators, and 0 type safety. If my API changes response, my front end generated library will fail compilation with a type error.

> Moral of the ramble, new tech is great – sometimes.

> https://www.graphql-code-generator.com

You can do this with a boring REST API too. Most frameworks can automatically generate a swagger file, and there is a tool to generate clients from this in lots of different languages.

There are no comments on this comment yet.