care must be taken - because of different UUID formats.
by default codec can read any type, but for write - decision must be made
either format 3 - JAVA_LEGACY or format 4 - UUID_STANDARD
recommendation is to use UUID_STANDARD, but java driver uses JAVA_LEGACY by default
See also
org.bson.codecs.UuidCodec
this implementation does not support C_SHARP_LEGACY codec at all
[https://jira.mongodb.org/browse/JAVA-403] for explanation
care must be taken - because of different UUID formats. by default codec can read any type, but for write - decision must be made either format 3 - JAVA_LEGACY or format 4 - UUID_STANDARD recommendation is to use UUID_STANDARD, but java driver uses JAVA_LEGACY by default
org.bson.codecs.UuidCodec this implementation does not support C_SHARP_LEGACY codec at all
[https://jira.mongodb.org/browse/JAVA-403] for explanation