UUIDEncodingStrategy
public enum UUIDEncodingStrategy
Enum representing the various strategies for encoding UUID
s.
As per the BSON specification, the default strategy is to encode UUID
s as BSON binary types with the UUID
subtype.
See also
bsonspec.org-
Encode the
UUID
by deferring to its default encoding implementation.Declaration
Swift
case deferredToUUID
-
Encode the
UUID
as a BSON binary type (default).Declaration
Swift
case binary