As of now, simple DU are serialized as objects in MongoDB. Consider this simple DU:
type Gender =
| Male
| Female
It is serialized as:

Update the serializer to generate a string instead using the DU names - or at least having an option to change the serialization format.