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 |
---|---|---|---|
Help with Mongo Driver in C#, facet not mapping regex filtered dataset | 0 | 539 | Apr 2024 |
Lookup on IMongoQueryable - getting an IAggregateFluent from IMongoQueryable | 0 | 282 | Jul 2024 |
Failed to send “getMore” command with database “<DBName>”: Failed to read 16716027 bytes: socket error or timeout: generic server error | 1 | 400 | Aug 2024 |
BSON field ‘collMod.index.unique’ is an unknown field | 0 | 34 | Dec 2024 |
[EF Provider] Support for HasIndex on nested objects | 10 | 104 | Jan 29 |