I use pymongo 2.4.1.
from bson.objectid import ObjectId
[i for i in dbm.neo_nodes.find({"_id": ObjectId(obj_id_to_find)})]
More Related Contents:
- How to import data from mongodb to pandas?
- Query Mongodb on month, day, year… of a datetime
- Insert a Pandas Dataframe into mongodb using PyMongo
- How to sort mongodb with pymongo
- Authenticate After Picking the Database
- Fast or Bulk Upsert in pymongo
- How to make a query date in mongodb using pymongo?
- Append item to MongoDB document array in PyMongo without re-insertion
- Append item to MongoDB document array in PyMongo without re-insertion
- How to Ignore Duplicate Key Errors Safely Using insert_many
- Getting Spark, Python, and MongoDB to work together
- How to convert a pymongo.cursor.Cursor into a dict?
- Using .sort with PyMongo
- How to continue insertion after duplicate key error using PyMongo
- How to run raw mongodb commands from pymongo
- ImportError: No module named objectid
- “Large data” workflows using pandas [closed]
- TypeError: ObjectId(”) is not JSON serializable
- mongodb: insert if not exists
- Pymongo keeps refusing the connection at 27017
- Why is PyMongo 3 giving ServerSelectionTimeoutError?
- JSON ValueError: Expecting property name: line 1 column 2 (char 1)
- How to get ordered dictionaries in pymongo?
- mongodb cursor id not valid error
- Delete every non utf-8 symbols from string
- How to compare string and integer in python?
- Know the depth of a dictionary
- UTF-8 HTML and CSS files with BOM (and how to remove the BOM with Python)
- Django: sudden DB reset after Heroku sleep
- Python regular expression not matching