Relay Compiler GraphQL API
The Relay Compiler is Meta's ahead-of-time GraphQL compiler that generates optimized runtime artifacts and type-safe code for Relay applications. It processes GraphQL fragments in JavaScript/TypeScript source code, aggregates data requirements, optimizes queries, and generates TypeScript or Flow types. The compiler enforces GraphQL best practices including connection patterns, pagination fragments, and data masking.
Overview
Relay Compiler GraphQL API is a GraphQL API specification published by Relay Compiler on the APIs.io network.
The Relay Compiler is Meta’s ahead-of-time GraphQL compiler that generates optimized runtime artifacts and type-safe code for Relay applications. It processes GraphQL fragments in JavaScript/TypeScript source code, aggregates data requirements, optimizes queries, and generates TypeScript or Flow types. The compiler enforces GraphQL best practices including connection patterns, pagination fragments, and data masking.
documentation is published at https://relay.dev.
The specification includes 4 reference links.
Tagged areas include Code Generation, React, Meta, Open-Source, and TypeScript.
Endpoint
References
- Documentation https://relay.dev/docs/
- GettingStarted https://relay.dev/docs/getting-started/
- APIReference https://relay.dev/docs/api-reference/graphql-and-directives/
- Documentation https://relay.dev/docs/api-reference/
Work with this as data
Every GraphQL schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for graphql
4 MCP tools reach this
find_graphqlBrowse and filter every GraphQL schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/graphql/relay-compiler-graphql"
curl "https://apis.io/api/v1/graphql?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.