Source: dzone.com

What is GraphQL?

Category: Database, Data

by GraphQL is a syntax that describes how to ask for data, and is generally used to load data from a server to a client. GraphQL has three main features: With GraphQL, the user can make a single call to fetch the required information by declaring what it needs, rather than several REST requests to fetch the same data. GraphQL is a query language for API's that uses a declarative syntax to describe what data is being requested and a server-side runtime for executing queries via a defined type system.

This means GraphQL will provide error messages if you ask for data that doesn't exist in the type.

Related Articles