Is there any way for creating Mongo codecs automatically?
问题 I'm willing to migrate my code from mongojack to something that supports the new async mongo driver. Yet I find that the new way of encoding/decoding is through Codec s and I don't see myself writing a Codec for every class in my model. That's why I'd rather write a lib that given a class creates a Codec . However I don't know how, nor do I know if there's already some effort out there trying to achieve the same. Are there some libs that achieve what I want? if not, what's the best approach