UUIDEncodingStrategy

public enum UUIDEncodingStrategy

Enum representing the various strategies for encoding UUIDs.

As per the BSON specification, the default strategy is to encode UUIDs 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