How to get all the tables present in the join from an SQLAlchemy session query join statement
Handle queries more efficiently with FastAPI and SQLAlchemy