GraphQL
A query language for APIs where the client asks for exactly the fields it needs, in 1 single query.
Example
The app asks for the user's name and city and gets those 2 fields, not all 30.
Test yourself: GraphQL
GraphQL and gRPC
What's GraphQL's main advantage?
You ask for name and city: 2 fields come back, not the user's 30.
GraphQL and gRPC
Which is a disadvantage of GraphQL?
In REST, GET /products/7 repeats identically 1,000 times; in GraphQL there are 1,000 different queries.
0/2
â–¶ Play