LIVE cartercole.net --:--:-- UTC

// 02 FIELD TOOLS

python-framework

PYTHON GRAPHQL RELAY REPO

A starting point for a GraphQL app: FastAPI, Strawberry and async SQLAlchemy behind, Astro, React and Relay in front. One query, one mutation and one subscription, all used by a single demo component, cover the whole round trip, with subscriptions carried over graphql-ws from an in-process pub/sub. npm run dev dumps the schema from the Python side and runs the Relay compiler before Astro starts, so the frontend always compiles against the backend it talks to.