Promptles
Backend & APIs

GraphQL

intermediate

Definition

A way of asking a server for data where the app says exactly what it wants, no more, no less, in a single request. Instead of getting a fixed bundle of information, the app picks the precise fields it needs, like ordering off a custom menu.

In the wild

A profile page only needs a user's name and photo. With GraphQL, the page asks for just those two things. The server doesn't waste time bundling up the user's entire history, address book, and notification preferences just to show a tiny avatar.

More from Backend & APIs