Book description
REST APIs are great, but when you have to make individual requests to 10, 20, 30, or more of them to render a page or screen, they can become a bit cumbersome for your frontend developers. Facebook solved these challenges by inventing and later open-sourcing GraphQL.
Rather than requesting data from each API individually, GraphQL allows frontend developers to build a query asking for all of the data that’s needed, no matter which REST APIs actually contain the data. The GraphQL server then retrieves the data and returns it to the frontend developer in a single JSON document. Having been pioneered by Facebook, Twitter, and many of the other Silicon Valley giants, GraphQL is just starting to be used in the commerce domain.
In this practical guide, you’ll learn:
- The challenges of using REST APIs on their own
- How GraphQL complements REST APIs
- The origins of GraphQL and its ongoing governance model
- About the GraphQL specification
- How GraphQL clients and servers work
Product information
- Title: GraphQL for Modern Commerce
- Author(s):
- Release date: February 2020
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492056843
You might also like
book
Microservices for Modern Commerce
For consumers, there’s no distinction between commerce and ecommerce. People shopping for products today expect to …
book
APIs for Modern Commerce
APIs are to today’s digital revolution what steam-powered engines were to the industrial revolution in the …
video
GraphQL in Motion
See it! Learn it! Do it! GraphQL in Motion gets you started building GraphQL-based APIs for …
book
GraphQL in Action
Reduce bandwidth demands on your APIs by getting only the results you need—all in a single …