A mutation is a change to the datastore. Create, Update and Delete are
examples of mutations, while Read is not.
Google Cloud Datastore supports multiple mutations in a single API call,
subject to the limits of the service. Adding mutations separately from
committing the changes allows you to create complex operations, both
inside a transaction and not.
public mutation ( string $operation, |
||
$operation | string | The operation to execute. "Insert", "Upsert", "Update" or "Delete". |
$input | The entity or key to mutate. | |
$type | string | The type of the input array. |
$baseVersion | string | [optional] 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. |
Résultat | array | [Mutation](https://cloud.google.com/datastore/docs/reference/rest/v1/projects/commit#Mutation). |