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

Hi, I am trying to create a python project with DDD, but do not distinguish ORM classes and DDD classes The problem is that using custom types for the documents...

The following error message has been raised: ![WhatsApp Image 2024-04-24 at 18 34 32](https://github.com/MongoEngine/mongoengine/assets/63063391/a6844796-526f-4163-80bf-fb618167e9ba) When filtering the following : Collection.objects(float_list__gt=[]) where float_list: mongo_db.ListField(field=mongo_db.FloatField())

class Family(Document): ages = ListField(field=FloatField()) when filtering with family.objects(ages__gt=[]) mongoengine raised an error ( This does not happen with list of undeclared fields) This PR fix this issue.

#2811 - Add array filter to modify

Starts from 0.28.0 `update`, and `update_one` starts to support kwarg `array_filters` which inline with https://www.mongodb.com/docs/manual/reference/operator/update/positional-filtered/. Base on mongodb doc link above, `Queryset.modify` should also support `array_filters`, the underlying [pymongo function](https://pymongo.readthedocs.io/en/stable/api/pymongo/collection.html#pymongo.collection.Collection.find_one_and_update)...

I was looking for visualization tools for the models, and how they are connected, is there anything out there that can help?

```python class MyDoc(Document): things = ListField(StringField()) ``` If I get hold of a document with some things and do ```python doc.things.clear() doc.save() ``` `things` will not be emptied. If I...

Acceptable type hints in MongoEngine

Hi! My name is Chris and I'm writing a thesis on Open Source Software. I'm trying to collect/validate my data and I have two questions for the maintainers of this...