pymongo find by id code example
Example 1: find record in mongodb with mongodb object id python
from bson.objectid import ObjectId
[i for i in dbm.neo_nodes.find({"_id": ObjectId(obj_id_to_find)})]
Example 2: mongo console find by id
db.collection.find({_id:ObjectId('5e208c18d598b806c869ca37')}).pretty()