FirebaseFirestore Framework Reference

DocumentChangeType

@frozen enum DocumentChangeType : Int, @unchecked Sendable

An enumeration of document change types.

  • Indicates a new document was added to the set of documents matching the query.

    Declaration

    Swift

    case added = 0
  • Indicates a document within the query was modified.

    Declaration

    Swift

    case modified = 1
  • Indicates a document within the query was removed (either deleted or no longer matches the query.

    Declaration

    Swift

    case removed = 2