Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
result = session.exec(statement)
hero_spider_boy = result.one()
- statement = select(Team).where(Team.id == hero_spider_boy.id)
+ statement = select(Team).where(Team.id == hero_spider_boy.team_id)
result = session.exec(statement)
team = result.first()
print("Spider-Boy's team:", team)
],
[
"Spider-Boy's team:",
- {"headquarters": "Wakaland Capital City", "id": 3, "name": "Wakaland"},
+ {"headquarters": "Sharp Tower", "id": 2, "name": "Preventers"},
],
[
"Spider-Boy's team again:",