For FastAPI user, we already have pydantic, openapi support and openapi-ts, pydantic-resolve is the last puzzle for a better development pattern.
This repo shows how to define and compose schemas together with pydantic-resolve, and also sync schemas and methods to frontend with openapi-ts.
We only need to make sure the return value from resolve_blogs or resolve_comments can be converted to BASE schemas (Blog, Comment)