jenkinchang

Results 1 comments of jenkinchang

Use "remote_side" in "sa_relationship_kwargs" ``` class Node(SQLModel, table=True): id: Optional[int] = Field(primary_key=True) name: str father_id: Optional[int] = Field(foreign_key="node.id") father: Optional["Node"] = Relationship( back_populates="childs", sa_relationship_kwargs={"remote_side": "Node.id"} ) childs: List["Node"] = Relationship(back_populates="father")...