DEV Community

Discussion on: Explain GraphQL like I'm five.

Collapse
 
bgadrian profile image
Adrian B.G.

It's like you, as a child, between your parents, when they are upset on each other.

Mother says: - tell your father to buy these groceries, gives you the list.
You deliver the list to your father. Your father goes to multiple stores, buy stuff. On the list is also "pay the electric bill", he goes and pays that too.

He returns with the goods. You take the goods and deliver them to your mother.

Mother = the Client
The list = the query
Father = the server
The Stores = the data sources (databases, files). Electric bill - 3rd party service like post on a twitter account.
You = graphQL
The goods and the receipt of the bill = the GraphQL response