Compose generates the router execution config locally from your subgraphs. The config can be used to start your router with a pre-built router config.
npx wgc router compose
command allows you to compose subgraphs and build a router execution config locally without a connection to the control plane.
-i, --input
: The path to the input config file that contains information about your subgraphs.
-o, --out
: Destination file for the router config. Prints to standard output if not provided.
--suppress-warnings
: This flag suppresses any warnings produced by composition.
router.json
npx wgc router compose
command does not interact with the control plane and completely runs locally.