Publish subgraphs to the GraphQL CDN and refresh the frontend client schema
--routing-url you publish is the one it uses. It must be reachable from the
dev router in carbyne-dev-eu-west-1. Which address form works (for example an
in-cluster service name or an internal load balancer) is not yet verified.
See also: Unified GraphQL Development (Notion, owned by Niklaus Buskirk)
for router and infra architecture and status.
@prepared911/data-gql vendors the composed client schema so code generation and
mocks do not depend on a running router. The normal refresh fetches the latest
valid schema from axonmundi/default:
.env.wgc.example to the untracked .env.wgc file and load it:
cosmo). Whether it signs in
with Okta, and whether the control plane needs the VPN, is not yet verified.
The dev router itself needs no VPN:
pnpm schema:sync:check compares the committed copy without writing. It must
print matches Cosmo registry.
pnpm schema:login is a personal login session. Do not run it for another
person or substitute a CI API key. Neither COSMO_API_URL nor COSMO_API_KEY
belongs in a local file you commit, a repository variable, or a log.
Refresh the vendored schema only with pnpm schema:sync against the Cosmo
registry, as above. Do not sync axon911-frontend's schema from a local AxonMundi
checkout (AXONMUNDI_DIR) or a hand-picked file (SCHEMA_SOURCE), and never
edit packages/data-gql/src/schema.graphql by hand.
If a subgraph change is not in the registry yet, wait for its owner to publish
it. See Publish a subgraph.
*.graphqls) and exposes a GraphQL or gRPC
endpoint. Publishing uploads the schema, and an optional gRPC mapping, to the
registry, which tells the router to serve the subgraph.
For now, publish by hand with wgc from your service's repository. CI/CD comes
later. These steps are not yet verified end to end against the dev router.
--routing-url:
matches Cosmo registry:
publish never changes an existing subgraph's URL or labels. Use
wgc subgraph update for that.wgc subgraph delete <name>-edfs -n default.