Grafbase Schema Command
Fetch a schema from the Grafbase schema registry.
Usage:
grafbase schema [OPTIONS] <GRAPH_REF>
Arguments:
<GRAPH_REF>
: Graph reference that uses the formatorg/graph@branch
.
Options:
--name <SUBGRAPH_NAME>
: Subgraph name to fetch. If not provided, the federated graph schema is fetched.
Fetch the schema of a subgraph:
grafbase schema --name users my-org/my-graph@main
Fetch the schema of a federated graph:
grafbase schema my-org/my-graph@main