ReturnDocument

public enum ReturnDocument : String, Decodable

Indicates which document to return in a find and modify operation.

  • Indicates to return the document before the update, replacement, or insert occurred.

    Declaration

    Swift

    case before = "Before"
  • Indicates to return the document after the update, replacement, or insert occurred.

    Declaration

    Swift

    case after = "After"