grillazz / fastapi-sqlalchemy-asyncpg

Integration of FastAPI framework supported by Pydantic with SQLAlchemy ORM and PostgreSQL on asyncpg driver
MIT License
415 stars 57 forks source link

something wrong with the delete api #162

Closed sanwei111 closed 3 months ago

sanwei111 commented 4 months ago

@router.delete("/") async def delete_nonsense(name: str, db_session: AsyncSession = Depends(get_db)): nonsense = await Nonsense.find(db_session, name) return await nonsense.delete(nonsense, db_session)

can not work

grillazz commented 4 months ago

hmmm can you place err trace ?