Growth coil is designed to address some of the problems and limitations of rest.
One of the issues addressed the overfishing of data.
Commonly, the response from a restful API were sending entire document.
And then you just use the required fields.
Well, this approach is simple.
It does mean you end up sending much more data than is sometimes required when fetching a large array
of documents.
This can have a major impact on response times.
Graph Trail addresses this problem by using a declarative approach to fetching data that allows you
to ask for the exact data that you require and no more.
Another advantage of graph tool is that it can reduce the number of requests required by allowing related
data to be returned when needed.
This is also possible in a rest API.
It's difficult to anticipate the needs of the consumers when designing the API.
This means that multiple round trips to API are often needed to fill a client's requirements.
This graph carol allows you to request related objects only when required to help solve this problem.
Unlike Rest, Graph supports persistent connections between the client and the server.
This is most commonly achieved through the use of web sockets.
Anybody who's designed a restful API will know that adding dating data can be tricky when graphs of
data are involved.
There are quite a few different approaches that can be taken graphical simplifies, adding and updating
graphs of data through its mutation syntax, though we can see Graph has a lot of advantages.
There are some drawbacks.
Querying a graph cool API requires more knowledge compared to creating a rest API.
The developer must know the graphical query language, and they must also know the schema graph.
Carol is still the new kid on the block.
So most developers are still more comfortable with rest.
Funny Graph Cloud does not support zippy caching, as each response could return different data, depending
on the query.
Now, in the next module, we're going to examine the differences between graph and rest while looking
at some examples.