Mode

public enum Mode

An enum representing one of the two supported string formats based on the JSON standard that describe how to represent BSON documents in JSON using standard JSON types and/or type wrapper objects.

  • Canonical Extended JSON Format: Emphasizes type preservation at the expense of readability and interoperability.

    Declaration

    Swift

    case canonical
  • Relaxed Extended JSON Format: Emphasizes readability and interoperability at the expense of type preservation.

    Declaration

    Swift

    case relaxed