MongoLab _id field
===

I am running into a strange problem, where we are using MongoDB on our local development environment and MongoLabs on Heroku for our production environment. Now the problem comes with the way MongoLabs handles _id field. Instead of doing _id: '0x....' it is using _id: { $oid: '0x...'}.

This seems to be causing some problems, as some code does not work as expected on production but works perfectly on our local machines.

We are using Nodes.js with Mongoose and Express for this project. I noticed the problem when it gave me undefined for model._id.

Is there a way to force the two to be consistent? preferably force MongoLab to use _id: '0x...'?