I am working on Morphia 2.3.9 , how to write the entire object using BSonWriter in encode method

Hi All,

Inside encode method of Codec , is there a way to write the entire object, instead of just the property?? And also in decode method to retrieve the entire object

Currently am using

Write.writestring to write every property, else the