You don't need to turn anything, your ObjectId
itself is _id
but in string
format when you send it through JSON to somewhere. Try following:
Photo.find({vehicle: id}, function(err, result){...});
Above id
is just your vehicle
's ObjectId
obtained from any source e.g. User Interface