Mutation
import type { Mutation } from "https://googleapis.deno.dev/v1/datastore:v1.ts";
A mutation to apply to an entity.
§Properties
The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.
The strategy to use when a conflict is detected. Defaults to
SERVER_VALUE
. If this is set, then conflict_detection_strategy
must
also be set.
The properties to write in this mutation. None of the properties in the
mask may have a reserved name, except for __key__
. This field is ignored
for delete
. If the entity already exists, only properties referenced in
the mask are updated, others are left untouched. Properties referenced in
the mask but not in the entity are deleted.
Optional. The transforms to perform on the entity. This field can be set
only when the operation is insert
, update
, or upsert
. If present, the
transforms are be applied to the entity regardless of the property mask, in
order, after the operation.