I\'ve found this question answered for C# and Perl, but not in the native interface. I thought this would work:
db.theColl.find( { _id: ObjectId(\"4ecbe7f9e8c
In MongoDB Stitch functions it can be done using BSON like below:
Use the ObjectId helper in the BSON utility package for this purpose like in the follwing example:
ObjectId
var id = "5bb9e9f84186b222c8901149"; BSON.ObjectId(id);