Thats interesting, if I was using TypeScript to access the data, how would I keep the schemas in sync between TS and python?
Tiangolo of FastAPI fame is working on https://sqlmodel.tiangolo.com/ Which is pydantic models, SQL alchemy. Migrations are coming soon. This will probably be an excellent way to build APIs with db. Then you can generate a typescript client from the built in OpenAPI schema.
if using graphene or strawberry you export sdl to json and use @graphql-codegen/typescript