mongoengine icon indicating copy to clipboard operation
mongoengine copied to clipboard

A Python Object-Document-Mapper for working with MongoDB

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

Hi, #### Details: I have an issue with the updating of a `DictField` of a `DynamicDocument` that sometimes raises an exception. It seems that there is a bug in `mongoengine`...

I am trying to integrate Mongoengine ORM with Fastapi but am experiencing an issue when trying to return routes: demo model: ```python class ModelName(Document): name = StringField(required=True) title = StringField(required=True)...

hello I have been using mongoengine on my latest project and I'm happy with it. somehow, I would like to push vectors (embeddings) into my mongodb collection and perform vector...

Awaiting Response

Hello ! We've upgraded to the latest mongo, pymongo and mongoengine versions recently. It seems that we sometimes have duplicates results when paginating using slices or index on objects with...

First off, I want to apologize for this whole uuidRepresentation situation. The issue stems from a mistake made in certain MongoDB drivers a decade ago and it could have been...

Hi folks Are you interested in adding types to your project? There is https://github.com/sbdchd/mongo-types project, but it's incomplete and outdated. But types can be integrated back into the original project....

The method document.save() will unset fields if that equal ""/[]/{} and equal default. This causes me a lot of trouble. When I get data in mongo through other tools, I...

GridFS data blocks delete by: https://github.com/MongoEngine/mongoengine/blob/92f6fce77d12f930333bd8980fa611627d3a8d1b/mongoengine/document.py#L642-L644 then https://github.com/MongoEngine/mongoengine/blob/92f6fce77d12f930333bd8980fa611627d3a8d1b/mongoengine/fields.py#L1839-L1844 So calling Document.delete() won't ran into this issue, but cascade delete will, because: https://github.com/MongoEngine/mongoengine/blob/161493c0d24c4f23d4d576f7171e78f0e62cdd70/mongoengine/queryset/base.py#L505-L509 this will call pymongo's delete directly, which will...

This resolve issue https://github.com/MongoEngine/mongoengine/issues/2433 Feel free to make changes directly.

```Python import unittest from mongoengine import DynamicDocument, connect from mongoengine.fields import StringField class User(DynamicDocument): username = StringField(required=True) pa_id = StringField(required=True, regex=r'(^PA\d\d\d\d$)') class Test(unittest.TestCase): def setUp(self) -> None: connection = connect(db='mongotest',...