Local development

The Grafbase dev server can act as a schema registry.

This is useful for experimenting with a few subgraphs or, if you can run all your services locally, replicate a whole production deployment.

To start it, run grafbase dev in a federated graph project. This will start a local schema registry that waits for subgraphs to be published with the grafbase publish --dev command.

Whenever a subgraph is published, the dev server will compose it with the other published subgraphs and serve the resulting federated API.

Was this page helpful?