Issue with query_objectid_as_string on Eve>=1.0.1
Author: micaelmaltaCreated Mar 3, 2022Updated Dec 19, 2022
While migrating from Eve 1.0.0 to 1.0.1, we are seeing unexpected result with query_objectid_as_string and versioning
Expected Behavior
if query_objectid_as_string is set to true, mongo queries should not be cast as ObjectID
{ find: "string_id_accounts", filter: { _id: 'xxx' }Actual Behavior
if query_objectid_as_string is set to true, mongo queries are cast as ObjectID
{ find: "string_id_accounts", filter: { _id: ObjectId('xxx') }Environment
- Python version: >=3.6
- Eve version: >= 1.0.1
POC
Source: pyeve/eve