beanie icon indicating copy to clipboard operation
beanie copied to clipboard

Asynchronous Python ODM for MongoDB

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

**Describe the bug** There are many Pydantic v2 deprecation warnings triggered by beanie code. **To Reproduce** run python code using beanie 1.21 with `-W error` to stop at the first...

**Describe the bug** `RevisionIdWasChanged` error is raised when `save_changes` is called on an instance created by `get`. **To Reproduce** ```python import asyncio from typing import List, Optional from beanie import...

bug

This is a modified version of Beanie that includes an option to enable or disable transactions during migrations. Please see the motivation here (https://github.com/roman-right/beanie/discussions/827). To run a migration without a...

action requested

This PR adds a new TypeVar for `View` just like `DocType`, and is used in `FindInterface` to bind it for each model with their respective model type. It fixes a...

action requested

**Describe the bug** A model that fetches typed `Link` object does not work, if an aggregation stage is concatenated to the query. **To Reproduce** ```python from asyncio import run from...

bug

## Syncing from the Database If you wish to apply changes from the database to the document, utilize the [sync](../api-documentation/document.md/#documentsync) method: ```python await bar.sync() ``` Two merging strategies are available:...

**Describe the bug** Re-implementing `__iter__` methods on RootModels is common and even recommended in the in the Pydantic docs: https://docs.pydantic.dev/latest/concepts/models/#rootmodel-and-custom-root-types) Doing so seems to break model.save() in Beanie with: `TypeError:...

bug

**Describe the bug** I have a class `User` that inherits from `beanie.Document`. when this class is provided to document_model parameter of `init_beanie` as so ```python class User(Document): name: Annotated[str, Indexed(unique=True)]...

typing bug

Hi, Thank you again for your work. I noticed a strange result with mongo documents that use UUID as primary keys. **Describe the bug** Using UUID as replacement of standard...

bug