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

hey bro, can you help me… how did you do it?
i have a project with mongodb PHP library, but I must add functions with nodejs, and I don’t have been saw the MongoDB\BSON\Persistable on nodejs

maybe the driver and BSON implementation you have allows the functionality you want with its API, if it doesn’t i guess you have to change the driver or the BSON implementation.

In node.js its 2 files serialize/deserialize that do the work see

ok, thank you a lot, I will check it…