Usage flow
To show a common usage flow from the perspective of a frontend developer, the following sequence diagrams illustrate the typical steps followed when consuming a GraphQL API. The steps include using the GraphiQL web IDE to inspect the API and try out different queries, and then incorporate an already-tested query within a frontend application.
In the example, you can see a consuming application that wishes to find all countries that contain within their names the text "great" and then convert their currencies to US dollars. This is achieved through a single GraphQL HTTP [POST] request that contains two distinct queries, as will be subsequently described.
Note that the steps assume that a GraphQL service was previously designed and ...
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