11 GraphQL
He that breaks a thing to find out what it is has left the path of wisdom.—J. R. R. Tolkien
In addition to the widely used representational state transfer (REST) interfaces, GraphQL is also being used more and more frequently to generate web interfaces. Unlike REST, the query language—originally designed by Facebook—provides for a more dynamic querying of resources. The consumer of an interface defines the expected structure in the query and can thus affect both the form and the amount of data in the response. Furthermore, with GraphQL, it’s possible to combine multiple resources in one query and thus map dependencies directly without the need for additional queries.
For all its advantages, you must always keep in mind that GraphQL ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access