Grafbase Schema Command
Fetches a federated graph or a subgraph.
Usage:
grafbase schema [OPTIONS] <GRAPH_REF>
Arguments:
<GRAPH_REF>
: Graph reference that uses the formataccount/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