/m2m_fastapi

An example of a self-referential m2m with extra data relationship

Primary LanguagePython

m2m_fastapi

This is a simplified version to figure out how to do a self-referential, many-to-many, with extra data relationship. There are branches with each attempt, extra_assoc is the only one incomplete

Installation

If you don't have fastapi: pip3 install fastapi[all]

If you don't have sqlite3 pip3 install sqlite

Start up

Run the command to start the server uvicorn main:app --reload