uuidRepresentation option was added in 3.12.0. This allows changing the UUID codec implementation -- particularly it allows a client to use a standard UUID codec instead of the legacy Java codec which may be incompatible with other drivers.
The uuidRepresentation option takes a UuidRepresentation enum, which is annoying (but trivial) to deal with. It would be nice if we could pass a string or preferably a keyword instead.
As a workaround, I am using the following wrapper. I was too lazy to support a keyword.
uuidRepresentation
option was added in 3.12.0. This allows changing the UUID codec implementation -- particularly it allows a client to use a standard UUID codec instead of the legacy Java codec which may be incompatible with other drivers.https://github.com/mongodb/mongo-java-driver/blob/r3.12.0/driver-legacy/src/main/com/mongodb/MongoClientOptions.java#L1457-L1470
The
uuidRepresentation
option takes aUuidRepresentation
enum, which is annoying (but trivial) to deal with. It would be nice if we could pass a string or preferably a keyword instead.As a workaround, I am using the following wrapper. I was too lazy to support a keyword.