UUIDDecodingStrategy

public enum UUIDDecodingStrategy

Enum representing the various strategies for decoding UUIDs from BSON.

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

See also

bsonspec.org
  • Decode UUIDs by deferring to their default decoding implementation.

    Declaration

    Swift

    case deferredToUUID
  • Decode UUIDs stored as the BSON Binary type (default).

    Declaration

    Swift

    case binary