We store our documents with type name handling equal to ‘objects’ (automatically adds $type). Even when I set the client configuration serialization settings to this, the documents generated do not include this property. After digging around in the SDK this seems to be related to the fact that the serialization settings do not always get passed on.
I tried serializing the objects myself, but they then get stored as a string and I have to also custom deserialize them (since the SDK returns them as a string). Which causes some silly code that I would rather not have around.
Is there a clean way around this issue? Or should I just do my own serialization layered on top of the SDK?