christkv/node-mongodb-native — Issue #466: Right way to get and set bson serializer
Author: guileen
Created: 2012-01-02 04:14:17+00:00
State: open

I use below code to set bson serializer and get it, but now it seams `db.bson_serializer` has been removed

var db = new Db(name, this.server, {native_parser: !!mongodb.BSONNative});

ObjectID = db.bson_serializer.ObjectID;

What's the right way to get and set bson_serializer now? and how to get the right `ObjectID` class?