Relay

Noun · Development

Definitions

  1. A JavaScript framework by Meta for building data-driven React applications with GraphQL, featuring colocated fragment declarations per component, automatic query batching and caching, and a compiler that extracts and optimizes queries at build time rather than at runtime.

    In plain English: A tool made by Meta that helps React apps efficiently fetch exactly the data they need from a GraphQL server, with most of the optimization happening automatically.

    Example: "Relay's compiler caught the N+1 fragment issue at build time — it merged everything into a single optimized GraphQL query."

Related Terms