Node.js custon serialize/deserialize


I want to use a custom way to serialize and deserialize documents
I can do it after returning them but its slower,i want BSON <-> my_object directly

Update : i made it by making a custom version of the js-bson ,instead of using the one that
the driver uses,i dont think that i could made it in another way but if there is any help would be