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 want to load and deference a whole query/model as efficient as possible into memory, without subsequent calls to the database. Using QuerySet.select_related(max_depth=[n]) I think it is not deserializing...

I have this error in my uwsgi logs about multiprocessing UserWarning: MongoClient opened before fork. Create MongoClient with connect=False, or create client after forking. See PyMongo's documentation for details: http://api.mongodb.org/python/current/faq.html#using-pymongo-with-multiprocessing>

Question

I use mongoengine in one of my projects and host the DB at mongodb atlas and they are forcing an update to MongoDB 5.0 in few days and was wondering...

Hi, I am trying to use the GenericReferenceField with more than one reference in the choices parameter and use the upsert_one() to update or create a new entry. Below are...

Hello, Running the following example which uses **$geoNear** in an aggregation pipeline returns a `$geoNear is only valid as the first stage in a pipeline` error. ``` from mongoengine import...

``` class Post: author = ListField(CustomDictField()) Post.objects.insert([Post(author={"a": 1})]) ``` This will insert a dict value to author field in document

(See also [this](http://stackoverflow.com/questions/35257305/mongoengine-is-very-slow-on-large-documents-comapred-to-native-pymongo-usage) StackOverflow question) I have the following mongoengine model: ``` python class MyModel(Document): date = DateTimeField(required = True) data_dict_1 = DictField(required = False) data_dict_2 = DictField(required = True)...

Enhancement
Performance
High Priority

Is there a way to update a document without uploading it to the database? The ultimate goal is to perform validation **before** uploading to the database (see #1984 and #1287)....

#### Example use a URLField like this : ``` class Test(Document): test = URLField(null=True) Test.objects.create(test='') ``` will get a error: ``` mongoengine.errors.ValidationError: ValidationError (Test:None) (Invalid scheme in URL: : ['test'])...

`Document.compare_index()` breaks for text indexes if index definition and field definition are in different order. Minimal example: ```python from mongoengine import Document, StringField, connect, IntField # connect to db "test"...