DEV Community

Discussion on: Rest v/s GraphQL !

 
miketalbot profile image
Mike Talbot ⭐ • Edited

Having used HTTP based message enqueueing for a long time (basically RPC) we added a RESTish (my new term for what you are describing :]) and a GraphQL interface to our back end data platform. In doing this I've realised that GQL can represent almost anything as an API, which I couldn't really "see" before. If you can jump through the hoops once it really can be used to auto-scaffold, it has clear error messages and a bunch of intellisense logic for IDEs. I'm sold on it for our purpose which is a configurable set of document types where the GQL schema is generated based on the configuration - so there's new stuff to learn regularly.

I'm most impressed by the way we can represent relational data in the schema and therefore in the responses.

Thread Thread
 
chasm profile image
Charles F. Munat

Sounds like GraphQL is a good choice for your use case.