logoalt Hacker News

dofm • today at 11:24 AM • 0 replies • view on HN

As a counterpoint: while you and other people in this thread are talking about it mostly as a sort of enterprise-tool that helps impose discipline across teams, for me as a lone developer, I have found that schema-first GraphQL has helped me retain clarity.

Because you can use the schema judiciously to avoid all sorts of problems and to help you visualise the API boundary much more clearly, and rethink it where you need it.

I also find schema-first stuff quite useful in a prototype context. If I ultimately realise that there are fewer API flows that will matter, and I want to optimise for speed, I can embody those in a JSON API. It's also useful to lay down a framework to anticipate change in a networked app with internal APIs.

But really any tool that centralises specifications in a way that drives code-generation is potentially a useful thing for a lone developer, because it helps you retain perspective.

I use it less than I did, but I don't think I would benefit in the same way from this code-first approach from this library.