A Step-by-Step Guide to Running and Enhancing Your Federated Graph for Rapid Development.
compose.yaml
file that includes all the subgraphs you wish to include and compose into a federated graph. The information you are required to provide is as follows:
Property | Description | Required |
---|---|---|
name | The unique name of the subgraph | true |
routing_url | The unique url (endpoint) of the subgraph (typically ends with /graphql ) | true |
introspection.url | Required if you want to dynamically introspect a running subgraph server | false |
introspection.headers | Headers to pass on the introspection request | false |
schema.file | Path to the subgraph GraphQL schema | false |
router.json
that can be passed to the router in the next step.
config.yaml
file in the same directory as your router binary.
router.json
file. This is super handy for rapid-development.
wgc router token create
and use polling instead. This ensures that the latest valid config is deployed to your routers automatically.localhost:3002
. You will see a playground and you’re ready to test your changes.