-
Type: Epic
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
Done
-
Ease Using UUIDs
-
6
-
6
-
6
-
Since I wanted to store my documents using an UUID instead the native Mongo ID object, I found quickly the pkFactory configuration parameter
As a user of custom UUID objects, I found two problems that were hard to solve. I believe mentioning these in the documentation would be useful.
1. Serialization. This one is easy to solve. Just add a .toJSON() function
2. Deserialization. I am stuck here. I am casting to my own UUID class manually. However the driver can notice Binary.SUBTYPE_UUID objects.
A configuration parameter taking the constructor method for a custom UUID class would greatly reduce the burden for a programmer.
- is related to
-
PYTHON-2467 [GitHub] Fix hex only representation of UUID
- Closed
- split from
-
DRIVERS-654 Implement Handling of Native UUID Types Specification
- Development Complete
- links to