mongoengine icon indicating copy to clipboard operation
mongoengine copied to clipboard

A Python Object-Document-Mapper for working with MongoDB

Results 207 mongoengine issues
Sort by recently updated
recently updated
newest added

as per: https://stackoverflow.com/questions/74218378/mongoengine-listfield-of-referencefields

Updating a `DynamicField` of a list does not update using `.save()` or `.cascade_save()` when the list is updated using `.append()`. System Info Ubuntu 20.04 LTS MongoDB v6.0.4 mongoengine v0.26.0 pymongo...

`SetField` inherits from `ListField` and is represented as a list on the database side of things. The differences from `ListField` are that instead of containing a `BaseList` object, a document's...

PyLint is complaining: > `Class 'User' has no 'objects' member (no-member)` > `Class 'User' has no 'DoesNotExist' member (no-member)` This is because `objects` is assigned in the metaclass `base/metaclasses.py:345`: ```...

Enhancement

It seems that the mongoengine is broken for atomic dec operation a FloatField or DecimalField. Here is what i am trying - ``` class Account (DynamicDocument): user = ReferenceField(User,passthrough=True,reverse_delete_rule=True,required=True,unique=True) amount...

Bug

We've run into an issue where `reload`, `save`, and `update` throw an error when they dereference the abstract field from a ReferenceField. It works fine when you initially save the...

Is this intended behavior? I ran into a bug where when I called `update_one` with`upsert=True`, a sequencefield was not created for the object on creation.

save() not working in an `EmbeddedDocumentList` in nested embedded document, as `_instance` is an `EmbeddedDocument` instead of `Document` Reproducer: ``` class TestK2(EmbeddedDocument): values = EmbeddedDocumentListField(StringField, default=[]) class TestK1(EmbeddedDocument): k2 =...

I'm trying to insert documents in bulk, I have created a unique index in my collection and want to skip documents which are duplicate while doing bulk insertion. This can...

Question

I want to save pydantic models in my mongo database, so I made a custom field that inherits from DictField: ``` class BaseModelField(DictField): """ A pydantic BaseModel field. Stores in...