How to persist data into a One-to-Many SELF referential with SQLAlchemy?
How to persist data into a One-to-Many SELF referential with SQLAlchemy? Question: I’m trying to persist a One-To-Many self-referential relationship. My table looks something like this: class Users(Base): __tablename__ = "users" id = Column(Integer, primary_key=True, unique=True) connected_ids = Column(Integer, ForeignKey("users.id")) connected_with = relationship("Users") I arrived at this format following this page in the docs for …