What is the optimal way to return an additional attribute from a related object with FastAPI and SQLAlchemy?

前端 未结 0 856
旧巷少年郎
旧巷少年郎 2021-01-04 06:28

I have an API endpoint that returns a list of objects, and I would like to know the optimal way to include one attribute of a parent or related object. Currently I am using

相关标签:
回答
  • 消灭零回复
提交回复
热议问题