zigzago
zigzago
kmongo uses kbson to encode/decode bson (mongodb data format). Kbson does not support JsonObject encoding or decoding for now. HTH
What you can do is to write a KSerializer that encodes and decodes a JsonObject and register this serializer. It should work. It would be a nice PR for kmongo...
depends of #86
Since https://github.com/Kotlin/kotlinx.serialization/issues/1576 fix you can use the `@Serializable` annotation on sealed interface. But there is still an issue when accessing serializer from KClass (https://github.com/Kotlin/kotlinx.serialization/issues/1869). Workaround for now: use sealed class...
Thank you for the explanation. Unfortunately the change would not be backward compatible. It would be also problematic for serialization without collection context: ```kotlin FooA(1).bson // -> do we use...
Than you for reporting the issue !
Thank you for reporting. The problem is that projection does not support (for now) type parameters for their root class. As a workaround, I suggest to use a custom dedicated...
No good reason -A PR would be welcome
What is your OS, java version & maven version? In the maven tool box of Intellij, select the "ide-jackson" profile and run the kmongo-core-test tests. But command line "mvn install"...
Can you provide the errors please ? ;)