kmongo
kmongo copied to clipboard
[deprecated] KMongo - a Kotlin toolkit for Mongo
Whenever I run my application I get this error: java.lang.IllegalAccessError: tried to access method org.bson.internal.OverridableUuidRepresentationCodecRegistry.(Lorg/bson/codecs/configuration/CodecProvider;Lorg/bson/UuidRepresentation;)V from class org.litote.kmongo.KMongo at org.litote.kmongo.KMongo.createRegistry(KMongo.kt:87) ~[?:?] at org.litote.kmongo.KMongo.createClient(KMongo.kt:78) ~[?:?] at org.hyrical.influx.storage.Storage.load(Storage.kt:30) ~[?:?] ```kotlin dependencies {...
I tried to use LocalDateTime as attribute type of an entity. After I saved this entity to mongo, the date field was translated to ISO date, which seems "right" in...
I have make interface for entities (kotlinx serialization) ``` interface WithId { val id: String //I use value class here actually } ``` All other entities inherits it How to...
I am using kmongo on a multiplatform project, which necessarily uses kotlinx.datetime for the datamodel since java.time.* are not multiplatform. It would be great if kotlinx.datetime was supported for serializing...
# Problem description When using kotlinx serialization if a type implements a `sealed interface` kmongo will try to serialize it using the interface serializer even if the compile-time type of...
Hello, this is more a question than an issue, unfortunately, but I wasn't able to find how to properly work with GeoJSON through KMongo in your [docs](https://litote.org/kmongo/). **I will start...
Hey! I'm looking for an easy way to use typed queries with kotlin value classes. E.g. ``` data class Account(@BsonId val id: Id, val email: EmailAddress) @JvmInline value class EmailAddress(val...
Hi, I cannot get a proper setup working using UUID for entity ids with KMongo. Here are some relevant snippets from my setup: ``` abstract class DomainEntity { @get:JsonProperty("_id") abstract...