|
|
|
|
|
by RHSeeger
748 days ago
|
|
But GraphQL doesn't allow for infinitely nested queries; the query itself has to include as much depth as it wants in the response. > Then we just come back full round trip to REST Except that GraphQL allows the back end to define the full set of fields that are available, and the front end can ask for some subset of that. This allows for less load; both on the network and on what the back end needs to fetch data for. From a technical perspective, GraphQL is (effectively) just a REST API that allows the front end to specify which data it wants back. |
|
The other extreme end example is to expose by default the entire data model (PostGraphile) and then getting lost in the customisation and authorisation.