zigzago

Results 59 comments of zigzago

@NathanPB do you follow this setup https://litote.org/kmongo/quick-start/#asynchronously-with-coroutines ? Looks like you don't have the KMongo module registered - be sure to use a mongo client coming from `KMongo.createClient().coroutine`

Well in the end this is "normal". You just have to add a `@Contextual `annotation on the id property. I know this is not ideal but it is a current...

Summary: now that the polymorphism strategy of koltinx.serialization seems to be stabilized, we need to register a dedicated polymorphism module for` Id `in order to avoid the need of `@Contextual...

Look at the doc - it should work: https://litote.org/kmongo/object-mapping/#id-json-kotlinx-serialization

The 4.0.2-SNAPSHOT has already the fix (in https://oss.sonatype.org/content/repositories/snapshots repo). If you don't want to have snapshots dependencies in your project, I'm waiting for a new java mongo driver release to...

I think so. But we need more complex examples. Look at this samples: https://litote.org/kmongo/typed-queries/#samples

Yes, this is the current expected behaviour. Mongo has no notion of timezone is their date field, so all date types are converted to UTC before serialization and from UTC...

Hello, Here you use the `kmongo-coroutine` dependency (jackson mapping is used) You may prefer to use the `kmongo-coroutine-serialization` and then you get a more meaningful error: `java.lang.IllegalStateException: This serializer can...

Due to the type safe nature of kotlinx.serialization, this is not easy (but doable). An other option is to use kmongo jackson mapping that already supports its. This comment: https://github.com/Kotlin/kotlinx.serialization/issues/296#issuecomment-758136040...

kbson is the lib that kmongo uses under the hood to support bson kotlinx.serialization. If you need to support generic Map (or Document) serialization, it would be better (and easier)...