View Source GoogleApi.Firestore.V1beta1.Model.DocumentChange (google_api_firestore v0.29.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. For PipelineQueryTargets, document will be in the new pipeline format, For a Listen stream with both QueryTargets and PipelineQueryTargets present, if a document matches both types of queries, then a separate DocumentChange messages will be sent out one for each set.

Attributes

  • document (type: GoogleApi.Firestore.V1beta1.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.V1beta1.Model.DocumentChange{
  document: GoogleApi.Firestore.V1beta1.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.