Fastapi sqlalchemy pydantic relational field
Pydantic models attributes uses :
instead of =
class Post(BaseModel):
id: int
title: str
user_id: int
category_id: int
category_name: CategoryGet
class Config:
orm_mode = True