call(back)

What Do You Think of GraphQL?

What do you think of GraphQL?

Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.

Hints

Hint 1

Give what it solves, what it costs on the server and for caching, and when it pays off.

Solution

Show the approach

Answer

One round trip and no over-fetching for nested UI data, with a typed schema. In exchange: HTTP caching is harder, query cost must be limited on the server, and N+1 resolvers need batching. It pays off with many clients and deep data, less so for simple CRUD.

Asked at