Mutation
import type { Mutation } from "https://googleapis.deno.dev/v1/datastore:v1.ts";
A mutation to apply to an entity.
interface Mutation {
baseVersion?: bigint;
delete?: Key;
insert?: Entity;
propertyMask?: PropertyMask;
update?: Entity;
updateTime?: Date;
upsert?: Entity;
}§Properties
§
baseVersion?: bigint
[src]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.
§
propertyMask?: PropertyMask
[src]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.