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

I have two models, let's say: ``` python class Article(Document): title = StringField() tags = ListField(StringField()) class Blog(Document): articles = ListField(ReferenceField(Article)) ``` I expected that `Blog.objects.filter(articles__tags='lemon')` would return the list...

Bug
(De)Reference

This PR adds types. Partially, from https://github.com/sbdchd/mongo-types/ by @sbdchd Partially, generated by monkeytype Partially handwritten and generated by included `gen.py` script (i'll remove it before merging) I inlined most of...

Adding the test cases from https://github.com/MongoEngine/mongoengine/pull/2438

Trying to upgrade from `mongoengine==0.10.5` to `mongoengine==0.24.2`. I get the following issue in one of the tests. # Traceback: > File "/usr/local/lib/python3.6/dist-packages/mongoengine/fields.py", line 958, in \_\_get\_\_ > return super().\_\_get\_\_(instance, owner)...

Some embedded document structures trip up delta tracking and cause saves to fail. For example, take the following script: ``` import mongoengine class EmbeddedDoc(mongoengine.EmbeddedDocument): content = mongoengine.StringField() docs = mongoengine.ListField(mongoengine.EmbeddedDocumentField('EmbeddedDoc'))...

Bug

I'm using this model ``` class Schedule(EmbeddedDocument): scheduleId: StringField(required=True) detail: StringField() class AccountBalance(Document): memberID = StringField(required=True) schedule = ListField(EmbeddedDocumentField(Schedule)) array = [] for index, row in df.iterrows(): # handle schedule...

I am confused about this line in mongoengine [docs](https://docs.mongoengine.org/guide/defining-documents.html#working-with-existing-data) > If you use [Document](https://mongoengine.readthedocs.io/en/latest/apireference.html#mongoengine.Document) and the database contains data that isn’t defined then that data will be stored in the...

When looking at any other value then trigger a dereference either directly or on the list. refs: #61

(De)Reference
Performance
High Priority

Yes, I read [faq](http://docs.mongoengine.org/faq.html). But now motor [stops active development](https://www.mongodb.com/community/forums/t/motor-3-6-0-released/297834) in favor of PyMongo and PyMongo develops [async client](https://pymongo.readthedocs.io/en/stable/async-tutorial.html). Also [uMongo](https://umongo.readthedocs.io/en/latest/) and [MotorEngine](https://motorengine.readthedocs.io/en/latest/) is not actively developed. Is there plans...