GraphQL Key Concepts

What is GraphQL?
GraphQL is a query language for APIs – not databases. In that sense it’s database agnostic and effectively can be used in any context where an API is used. It fetches data from a server where that data is stored in a database.

Why is GraphQL considered better then REST?
– REST too inflexible to keep up with the rapidly changing requirements of the clients that access them
– more flexibility and efficiency needed
– With a REST API, you would typically gather the data by accessing multiple endpoints
– In GraphQL on the other hand, you’d simply send a single query to the GraphQL server that includes the concrete data requirements.

Continue reading →