vadimdemedes / mongorito

🍹 MongoDB ODM for Node.js apps based on Redux
1.38k stars 90 forks source link

something wrong when i use the custom _id field #157

Open dazhangyu0808 opened 7 years ago

dazhangyu0808 commented 7 years ago

it looks like that , the _id filed must be a ObjectId in mongorito, but in mongodb, the _id field can be any type

evgeniysharapov commented 7 years ago

Based on the query.js: it only expect _id to be an ObjectId, otherwise string would be ambigous.