What is GraphQL?

GraphQL is a query language for APIs and a runtime for fulfilling queries with data.

Benefits of GraphQL

a query language for your api

GraphQL was created by Facebook, implemented in their mobile app in 2012 and open-sourced in 2015. It is rapidly becoming the standard for API-based data access. Typical REST APIs require loading from multiple URLs, GraphQL APIs get all the data your app needs in a single request. Apps using GraphQL can be quick even on slow cellular connections.

GraphQL eliminates the need to write manual parsing code

GraphQL APIs are organized in terms of types and fields, not endpoints. Developers can access the full capabilities of their data from a single endpoint. GraphQL uses types to ensure apps only ask for what’s possible and provide clear and helpful errors.

GraphQL puts the power of data into the hands of front-end developers

The dependency and related dysfunction that exists between front-end and back-end developers is legendary. GraphQL allows the front-end developer to query and mutate the data without having to make requests to back-end developers.

Who is using GraphQL?

GraphQL was open-sourced by Facebook in 2015 and has been rapidly gaining acceptance in teams around the world. Facebook has been utilizing GraphQL to power its mobile apps since 2012.