From the course: Programming Foundations: APIs and Web Services

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

GraphQL overview

GraphQL overview

From the course: Programming Foundations: APIs and Web Services

Start my 1-month free trial

GraphQL overview

- GraphQL is query language for APIs. A query language allows you to retrieve data from the data store. You're familiar with SOAP-based web services and RESTful APIs, but how is GraphQL different? Let's say that you have three different errands you need to run. SOAP-based web services and RESTful APIs are like going to to grocery store to pick up the ingredients for dinner. Then stopping by the gas station to fill up your tank with gas and then stopping by the after school program to pick up your kids. You have three different stops, which is like making three different API requests. GraphQL is like having a personal assistant that handles all of the stops for you. You simply tell your assistant to get the groceries, get the gas, and get the kids. The assistant knows the address of all the stops and does everything for you. You simply specify everything you want done and you're able to relax and wait for the results.…

Contents