|||
Aware Expert
ENFR

GraphQL is an open-source query language

GraphQL is an open-source query language and runtime for APIs running over HTTP/2 designed to retrieve structured data from servers.

First released by Facebook in 2015, GraphQL has since been adopted by numerous organizations including Microsoft, Google, Apple, Netflix, Snapchat, Pinterest, Atlassian, Dropbox, Instagram, and Yelp.

Main key concepts and features of GraphQL:

Clients send queries written in the GraphQL format to the API endpoint of connected databases, and the database returns only the necessary fields and related objects which the client requested. Unlike REST APIs, all GraphQL requests must contain a type definition schema to be able to parse results.

Query definitions may reference different types than those queried previously with one connection, leading to significant benefits when working with rich object models containing cyclical references or non-flat hierarchies.