mongoengine
mongoengine copied to clipboard
A Python Object-Document-Mapper for working with MongoDB
This change adds the ``_ref`` or ``_ref.$id`` prefix to a query if all values in an iterable query (i.e. ``__in``) are ``ObjectId``s or ``DBRef``s and raises an error for a...
This change fixes the CI by updating the ubuntu runner and drops EoL MongoDB versions below 4.4 which cannot be easily installed on Ubuntu 22.04.
Now that PyMongo has first-class support for async operations (since v4.x), is mongoengine going to support it ?
`datetime.utcnow()` was [deprecated](https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated) in Python 3.12, although it's [referenced](https://github.com/search?q=repo%3AMongoEngine%2Fmongoengine%20utcnow&type=code) in quite a few places in MongoEngine's docs and test code, e.g.: > Note: To default the field to the current...
Resolves #2878 The $search and $vectorSearch aggregation pipeline stages are moved to the front of the pipeline, similar to $geoNear and $collStats.
In order to allow setting new fields that did not previouly exist on dynamic embedded documents, the `lookup_member` functions on `EmbeddedDocumentField` and `GenericEmbeddedDocumentField` return dynamic fields as appropriate. Special awareness...
For users using the $search or $vectorSearch operator in aggregation pipelines for MongoDB Atlas, it must be done in the first stage of the pipeline. This is similar to how...
Currently [updating with an aggregation pipeline](https://docs.mongoengine.org/guide/querying.html#update-with-aggregation-pipeline) is supported in `update()` and `update_one()` methods. This PR add the same support in `modify()` method by following the original PR - https://github.com/MongoEngine/mongoengine/pull/2578 Related...
The [MongoEngine documentation](https://docs.mongoengine.org/guide/querying.html#update-with-aggregation-pipeline) states that updating with an aggregation pipeline is supported in the `update()` method. Currently, this functionality is available in both `update()` and `update_one()` methods. However, the `modify()`...
I have a program that worked all the time. Another team made multiple changement on the servers hardware and IP. Now it works 90% of the time. 10% of the...