Skip to content

Modify deleteById and searchById to search by ObjectID

Michael Evenchick requested to merge minor/object_id_fix into master

The functions deleteById and searchById currently pass the '_id' field as a string. Thus, they do not work with standard mongodb documents in which the '_id' field holds an ObjectID. The former function will throw errors and the latter will call back with an empty response. This MR fixes them so that they work as intended.

Merge request reports