
About Relay
Relay is a GraphQL client for React, developed by Meta. It lets components declare the data they need and fetches that data in efficient requests.
What it does
Relay's compiler collects the data needs of every component in an app and optimizes them into a single GraphQL request. Components keep their data dependencies with them, so changes stay isolated. Relay also keeps components updated when shared data changes, and it supports mutations with optional optimistic updates.
Key features
- Components declare their own data dependencies
- Compiler combines and optimizes queries
- Automatic updates when shared data changes
- Mutations with optional optimistic updates
Who it's for
- React teams building large single-page apps
- Developers using GraphQL at scale
Pricing and good to know
Relay is open source under the MIT license and is free to use. It is a client library, so you also need a GraphQL server. Relay uses a compiler step, so it adds a build step to your project. The docs include a guided tour that starts with queries.
Highlights
- Components declare their own data dependencies
- Compiler combines and optimizes queries
- Automatic updates when shared data changes
- Mutations with optional optimistic updates












