REST has become a standard for services on the internet, but it isn't without its drawbacks. GraphQL is a query language from Facebook that's caught on to address many of these issues. It provides API consumers with better visibility and more control over their data.
Where REST has endpoints and status codes, GraphQL has queries, mutations, types, and richer errors. It allows you to ask for precisely the data you need, to batch requests for parallel server processing, and even returns partial results in the face of downstream failures.