3 ms·
This. GraphQL is agnostic to the application layer, whereas REST is tied to HTTP. For instance, we have various REST-style endpoints that execute GQL queries d
by headcanon 8y ago
This. GraphQL is agnostic to the application layer, whereas REST is tied to HTTP.
For instance, we have various REST-style endpoints that execute GQL queries directly on the backend.
- RussianCow 8y agoREST is also transport-agnostic and definitely not tied to HTTP, even though that's by far the most common way in which it's used.
- mstade 8y ago> This. GraphQL is agnostic to the application layer, whereas REST is tied to HTTP. If anything it's the other way around really, HTTP is tied to REST, but even that would be a misnomer. HTTP is an implementation of the architectural style REST, and undoubtedly the most popular in terms of application. There are others though, such as CoAP for example.