ObjectMappingConfiguration

Default object mapping configuration options. Set values before KMongo initialization.

Properties

Link copied to clipboard

Are null value serialized? Default to true for jackson & kotlinx.serialization. Default to false for native driver (for backward compatibility).

Functions

Link copied to clipboard
fun <T> addCustomCodec(codec: Codec<T>)

Adds a custom codec.

Link copied to clipboard

Generates Id (using newId()) as ObjectId (default behaviour).

Link copied to clipboard

Generates Id (using newId()) as String.