View Source GoogleApi.Firestore.V1.Model.DocumentChange (google_api_firestore v0.27.0)

A Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected.

Attributes

  • document (type: GoogleApi.Firestore.V1.Model.Document.t, default: nil) - The new state of the Document. If mask is set, contains only fields that were updated or added.
  • removedTargetIds (type: list(integer()), default: nil) - A set of target IDs for targets that no longer match this document.
  • targetIds (type: list(integer()), default: nil) - A set of target IDs of targets that match this document.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Firestore.V1.Model.DocumentChange{
  document: GoogleApi.Firestore.V1.Model.Document.t() | nil,
  removedTargetIds: [integer()] | nil,
  targetIds: [integer()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.