BeanieODM / beanie

Asynchronous Python ODM for MongoDB
http://beanie-odm.dev/
Apache License 2.0
2.02k stars 213 forks source link

How to pass a beanie model to Python Generic[T] class #344

Closed turkic-dev closed 2 years ago

turkic-dev commented 2 years ago

hi folks, I want to collect audit logs of users in my fastapi application. So I tried logging my models but logging for each service was stupid. How can I pass my model to functions such as insert, save, delete in Beanie?

roman-right commented 2 years ago

Hi! Pls ask your questions in the discussions. It would be great if you would provide some examples.