Skip to main content
I solved my problem. MongoDB Driver is great. You have a lot of customizations to play around with it.
How did you solve your issue ?
I overrode ObjectId field with Custom Serializers as the attached picture. You can follow document link to get full customization for other types.
I went throught the documenrtation.
Got it Thank You.
5 months later
I am not able to get it working seamlessly with the custom Serializer that i have written, could either you share the Custom serializer for ObjectId
The problem here is kotlinx.serialization doesn’t know BSON types. So, you need to transform these types to JSON types. This is my Custom serializer for ObjectId, as you wish.
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Encoding concrete type for a custom registry | 1 | 676 | May 2024 |
How to DISABLE [discriminator] feature ??? | 1 | 324 | Jul 2024 |
Performance difference on X86 and ARM when used different versions of MongoDB v5,v7,v8 | 2 | 241 | Nov 2024 |
Migrating to LinqProvider.V3 | 2 | 80 | Oct 2024 |
Mongo ChangeStream & changeStreamSplitLargeEvent in golang example | 0 | 66 | Dec 2024 |