mercmobily/mongoWrapper — pull request #2 by maninga (2013-12-03 12:10:10+00:00)
Title: fix checkObjectId and ObjectId method by using constructor name instead ...

Hi,

Well done for the docs and the example application.

I had a problem when trying your example with these two methods: the _id field that is returned when fetching records did not match the instanceof test that was in your code. I suggest to check the constructor name property instead.

I also replace the ObjectID creation by using the mongo.ObjectID(str) constructor.

Best.