UUIDCodingStrategy

public enum UUIDCodingStrategy : RawRepresentable

Enum representing the various encoding/decoding strategy pairs for Dates. Set these on a MongoClient, MongoDatabase, or MongoCollection so that the strategies will be applied when converting UUIDs between their BSON representations and their representations in (non BSONDocument) Codable types.

As per the BSON specification, the default strategy is to encode UUIDs as BSON binary types with the UUID subtype.

See also

bsonspec.org