I have dummy question. Is it possible in self-hosted router (if we don’t need supergraph schema check or versioning) compose supergraph schema from subgraph introspection like rover dev with providing subgraph routing_url and --polling-interval
option which compose supergraph without needing to connect Uplink or give supergraph schema file?
Router itself can’t compose supergraphs. You can set up your own CD process which uses rover supergraph compose
to generate a new supergraph.graphql
file for router, and use the --hot-reload
option for Router to load the new file without restarting.
How you provide that file to the Router really depends on your infrastructure. If using Kubernetes, for example, you might use a ConfigMap
.
Beware, though, you’ll need to make sure you don’t update Router’s supergraph.graphql
file if composition fails—otherwise Router will error.