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 |
---|---|---|---|
Otelmongo at risk of removal | 3 | 876 | Jan 9 |
Logs are being spammed to console. How can I disable? | 1 | 1.5k | Jun 2024 |
Setting Default Casing for Fields in C# Driver Builders | 3 | 506 | Jul 2024 |
Error “writeConcern is not allowed within a multi-statement transaction” with JAVA driver, Replica and @Transactional | 2 | 278 | Aug 2024 |
Buffering timed out after 10000ms 8.7.0 mongoose node 20.10.0 | 2 | 216 | Jan 18 |