September 2024
Intermediate to advanced
743 pages
27h 48m
English
Web services based on the REST architectural style are quite common. In the previous section, you learned about the architectural style and its principles and saw how comparatively easy it is to implement a REST API using the Express framework. In this section, I want to introduce you to GraphQL and show you how it differs from REST and explore the advantages it provides.
Depending on the use case, REST APIs are not always the best type of API for web services because the web service on the server side (and not the client) determines the structure of the response, for example, which properties a returned JSON object contains and which are omitted. In contrast, GraphQL (also Graph Query Language ...
Read now
Unlock full access