How to DISABLE [discriminator] feature ???

I just want to manually control BSON serialization, and don’t want the library to add any field for me.
How can I do that?

Hi @cy_N_A ,

Welcome to the MongoDB Community Forums. You can manually control BSON serialization by implementing a custom serializer. I’m not sure if that’s exactly what you were looking for but hope it helps.

Thanks,

Rishit.