beanie icon indicating copy to clipboard operation
beanie copied to clipboard

Asynchronous Python ODM for MongoDB

Results 252 beanie issues
Sort by recently updated
recently updated
newest added

## Feature request Thank you for all of the great work on Beanie @roman-right! I would like to make a feature request. It would be helpful to extend the supported...

When calling `update()` related model is not loaded anymore: ``` project = await Project.get(id, fetch_links=True) update_query = {"$set": {field: value for field, value in req.items()}} await project.update(update_query) return ProjectResponse(**project.dict()) ```...

Hi, Sometimes when i want to save a model I get this error: ``` File "D:\Player-Tracker\venv\lib\site-packages\beanie\odm\utils\encoder.py", line 157, in _encode return self.encode_document(obj) File "D:\Player-Tracker\venv\lib\site-packages\beanie\odm\utils\encoder.py", line 105, in encode_document obj_dict[k] =...

Using `beanie==1.10.1` Trying to preform bulk update with `upsert=True` with no luck. ``` async def run_test(): await init_mongo() docs = [TestDoc(a=f"id_{i}", b=random.randint(1, 100)) for i in range(10)] # docs =...

Hi, This PR tentatively adds a `_previous_saved_state`, which stores the `_saved_state` AFTER it has been updated because the changes have been persisted in the database. This new state allows users...

Will beanie support cyclic relations soon, or is that not a planned feature? E.g., ```python from beanie import Document class Employer(Document): name: str employees: Link['Employee'] class Employee(Document): name: str employer:...

Hi, I saw that the formatting was wrong in the doc, so I fixed it, and added the documentation for the delete event added following [this](https://github.com/roman-right/beanie/issues/225) issue. Best,

Have you considered to allow for custom type encoders? Let me explain. Pydantic supports custom types. In fact I can implement one classes to overload default types, like in this...

First of all thanks for this fine and very useful library. Given that it's surprisingly difficult to make FastAPI/pydantic work seamlessly with MongoDb, this effort is very much welcome! Is...

feature-request

When using `Document.update` or `Document.set` (which triggers Document.update), it will trigger `Update` action and its registered hook. This has the benefit of allowing people who use update or set to...