CodecRegistry codecRegistry = CodecRegistries.fromProviders(MongoMapper.getProviders()); MongoClientSettings settings = MongoClientSettings.builder() .codecRegistry(codecRegistry) .build(); Use code with caution. Copied to clipboard
The library focuses on providing a clean, straightforward way to handle POJO codecs. Example usage involves annotating a class:
Provides a MongoMapper.getProviders() method to easily create a CodecRegistry for use with standard or asynchronous MongoDB Java drivers.
Connect with us:
Download our App: