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

Hello, I'm relatively new to MongoEngine so I apologize in advance if this is a bad idea for some reason. That said, it seems like using LazyReferenceField would be much...

Changing field lookup for `DynamicDocument`s when the field is nested in a `DynamicEmbeddedDocument`. Before these changes, the code was creating a dynamic field when the container document is a dynamic...

An example of a failing DynamicEmbeddedDocument: ``` class DynamicSettings(DynamicEmbeddedDocument): known_field = StringField() class Person(Document): name = StringField() settings = EmbeddedDocumentField(DynamicSettings) p = Person(settings=DynamicSettings(known_field="abc", dynamic_field1="123"), name="John").save() # The following raises a...

I recently had an issue when converting a field from IntField to FloatField. The default value for the field is None and when we tried to use FloatField we were...

hi, i found that a specific `obj.save()` command of my application takes up to MINUTES to be completed. i replaced that mongoengine command with a pymongo `insert_one` expression and it...

Hi, We are using MongoEngine `0.24.1` with Pymongo `4.0.0` and because of the [new behavior of Pymongo 4](https://pymongo.readthedocs.io/en/stable/migrate-to-pymongo4.html#mongoclient-cannot-execute-operations-after-close) we have unexpected connections that are closed. This is due to the...

Hi All, I'm trying to pass a read preference tags in my URI: Using the following command: mongo_connection = connect(host=config.MONGO_CONNECTION_URI) With the following URI: 'mongodb://root:[email protected]:27017,2.2.2.2:27017,3.3.3.3:27017/api?replicaSet=s0&readPreference=secondary&readPreferenceTags=region:us-west-2,usage:api' But the result I get...

Update regarding using string queries keywords in list queries, and how to define the same when defining the model

pymongo: 3.12.0 mongoengine: 0.23.1 I have a document: ``` class Logs(Document): reference_id = StringField(default=None) data = DictField(default=None) ``` In data field, i have a list `failed_stories`. This can have hundreds...

I believe this addresses #564 without breaking backwards compatibility. Allowing you to explicitly choose not to upsert so you don't create bad documents in your database. This may not be...