|
|
|
|
|
by andrewingram
3346 days ago
|
|
REST (in the pure sense) vs RPC is a valid comparison, but GraphQL solves a different problem. GraphQL is an alternative to other gateway API or backend-for-frontend solutions. The benefits of a gateway API to both developers AND users are hugely significant. These are decidedly NOT micro-optimisation. |
|
In my experience though, anything approaching a query language was too expressive for an API, and it was better to offer one API per query, and encapsulate the queries on the backend themselves.