Catalogue / block-2022-graphql-supergraph

Block merged its internal and public GraphQL APIs into one federated supergraph, serving the public API as a contract variant

Block, 2022. Federated GraphQL supergraph and the Square public GraphQL API.

Organisation
Block
Evidence
Reported from production
Source
How We Unified on One Graph at Block

The Corner (Square developer blog), published 2022-10-05

Records

Decision#d1

Replace the custom public GraphQL gateway with a tagged variant of the internal supergraph on its own gateway cluster

Decision#d2

Stand up a separate gateway cluster for the new schema variant, then switch the public endpoint's traffic to it

Decision#d3

Provide a command-line generator for new subgraph services with schema checks and registry publishing built in

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.