Remix.run Logo
▲ win311fwg 3 hours ago

> You lose a lot of that if you just have a GraphQL endpoint.

Of course, GraphQL was, quite explicitly, intended to be a layer over the CRUD/REST-style endpoints. It is interesting how it tried to become something else once it left the hands of Facebook, but I guess that's par for the course when few have Facebook-type problems but like to latch onto trendy things.

> And particularly in the age of LLMs and AI where adding and deploying new endpoints can take hours rather than days.

GraphQL's main value proposition, when humans were still writing code, was providing a map of all the services in the organization to even know what was out there available to use. In a large organization it is easy to not realize that a service exists at all. LLMs can equally benefit from something like that.

▲hackernud3s 2 hours ago | parent [-]

How is that not covered by rest api docs though?

▲strken 2 hours ago | parent [-]

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.

▲hackernud3s 14 minutes ago | parent [-]

Same with some rest backends, FastAPI for example.