logoalt Hacker News

hackernud3s • today at 2:19 AM • 4 replies • view on HN

How is that not covered by rest api docs though?


Replies

sh0gg0the • today at 10:02 AM

Even without API docs, REST implemented with HATEOAS in mind has this feature of discovery and self-explanatory. It's not a unique feature of GraphQL.

strken • today at 2:56 AM

The nature of GraphQL is that you can't write code without an up to date schema.

You could enforce this in a REST JSON API, of course.

win311fwg • today at 7:44 AM

With hundreds of different teams all off doing their own thing, how do you read the api docs of a service you don’t know exists? Realistically you’d need some kind of central graph schema to describe all of the available services to facilitate discovery…

GraphQL was built for the needs of Facebook, not a one man band. A product of Conway’s law.

➕ show 1 reply