Package-level declarations

Types

Link copied to clipboard

To manage id wrapped value.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MongoId

Annotate mongo identifier property for kotlinx.serialization.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class MongoProperty(val value: String)

Annotate mongo property name for kotlinx.serialization.

Link copied to clipboard

ObjectId generator.

Link copied to clipboard

ObjectId based String generator.

Link copied to clipboard
data class WrappedObjectId<T>(val id: ObjectId) : Id<T>

An Id containing a ObjectId.

Functions

Link copied to clipboard
fun <T> ObjectId.toId(): Id<T>

Create a new Id from the current ObjectId.