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

I'm trying to search `null object` with python `NoneType` but got the below error : `raise ValidationError(message, errors=errors, field_name=field_name) mongoengine.errors.ValidationError: 'null' is not a valid ObjectId, it must be a...

https://github.com/MongoEngine/mongoengine/blob/51afeca747838614d2545460d83e43ac0c313d4b/mongoengine/base/fields.py#L519 So I was writing some code to allow the client of my API to search for a resource by specifying either the built-in mongodb `_id` field or a `uuid`...

fix bugs which cause cannot modify field `type` etc.

## Document Structure ### Data ``` class Data(EmbeddedDocument): v = FloatField() q = StringField() co2 = FloatField() price = FloatField() ts = DateTimeField() ``` ### Meters Data ``` class MetersData(DynamicDocument):...

Hi, is it possible to create a timeseries collection with mongoengine? I cant't find any documentation for that. Only the way directly on mongoDB: https://www.mongodb.com/docs/manual/core/timeseries-collections/

feature

This is a similar issue to #837, though pertaining to `LazyReferenceField`s as opposed to `ReferenceField`s The following code should enable you to replicate the issue in mongoengine version `0.18.0` ```python...

I'm sorry if I'm wrongly using this method I'm trying to define a utility QuerySet like: ```py from mongoengine import QuerySet class CommonQuerySet(QuerySet): def update_by_id_or_raise(self, document_id, fields: dict): updated_document =...

fix none() has no effect in update / aggregate / first and cause query on all collection. Not sure that this is the best solution for aggregation case But this...

Hello, community. I just realize that any field I define starting with an underscore will NOT be included in the serialization process. I did some testing and this comes from...