Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

§
delete?: Key
[src]

The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.

§
insert?: Entity
[src]

The entity to insert. The entity must not already exist. The entity key's final path element may be incomplete.

§
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.

§
update?: Entity
[src]

The entity to update. The entity must already exist. Must have a complete key path.

§
updateTime?: Date
[src]

The update time of the entity that this mutation is being applied to. If this does not match the current update time on the server, the mutation conflicts.

§
upsert?: Entity
[src]

The entity to upsert. The entity may or may not already exist. The entity key's final path element may be incomplete.