Criteria object needs to be updated for use with pymongo 3
Criteria object is used to pass query parameters to various mongoengine managers. Here is just one example. Pymongo 3 stopped using the parameter 'fields' and replaced it with 'projection'. We need to update criteria object and it's use to make sure it is in compliance with pymongo 3.
Updated by email@example.com over 7 years ago
Here is the relevant migration guide from pymongo: http://api.mongodb.org/python/current/migrate-to-pymongo3.html#fields-renamed-projection
Updated by pcreech over 7 years ago
- Status changed from NEW to MODIFIED
- Assignee set to pcreech
This appears to be resolved with the pull request .
All underlying queries have been converted to using 'projection' instead of 'fields'
The criteria object's fields have been left alone to maintain api compatibility