fastapi-sqlalchemy-asyncpg
fastapi-sqlalchemy-asyncpg copied to clipboard
something wrong with the delete api
@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