FieldValue

class FieldValue : NSObject

Sentinel values that can be used when writing document fields with setData() or updateData().

  • Used with updateData() to mark a field for deletion.

    Declaration

    Swift

    class func delete() -> Self
  • Used with setData() or updateData() to include a server-generated timestamp in the written data.

    Declaration

    Swift

    class func serverTimestamp() -> Self