|
|
|
|
|
by dyeje
2007 days ago
|
|
Yes, the advantage of a GraphQL endpoint is you can ask for a variety of things and the tradeoff is potential performance issues for unforeseen queries doing N+1s or something. If you control the API and know all the use cases for a REST endpoint, the advantage is predictable performance characteristics and the tradeoff is flexibility. It all depends on what you need (and maybe what tools you're using to mitigate GraphQL resolver problems). |
|