GoogleApi.Datastore.V1.Model.MutationResult (google_api_datastore v0.18.1) View Source

The result of applying a mutation.


  • conflictDetected (type: boolean(), default: nil) - Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
  • key (type: GoogleApi.Datastore.V1.Model.Key.t, default: nil) - The automatically allocated key. Set only when the mutation allocated a key.
  • version (type: String.t, default: nil) - The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Datastore.V1.Model.MutationResult{
  conflictDetected: boolean() | nil,
  key: GoogleApi.Datastore.V1.Model.Key.t() | nil,
  version: String.t() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.