oid_to_str#
- langchain_mongodb.utils.oid_to_str(oid: Any) str [source]#
Convert MongoDBβs internal BSON ObjectId into a simple str for compatibility.
Instructive helper to show where data is coming out of MongoDB.
- Parameters:
oid (Any) β bson.ObjectId
- Returns:
24 character hex string.
- Return type:
str