returnIdsboolean
If true, the id's of modified documents are returned.
Default false
returnDocumentsboolean
If true, the entire content of changed documents is returned.
Default false
autoGenerateArrayKeysboolean
If true, adds a _key attribute to array items, unique within the array, to ensure each can be addressed uniquely in a real-time collaboration context, even if elements are inserted or removed elsewhere in the array.
Default false
transactionIdstring
By default every transaction gets a random ID. This is included in Listener mutation events and the History API. This parameter lets you set your own transaction ID. It must be unique in the dataset.
skipCrossDatasetReferencesValidationboolean
If true then any cross-dataset references will be considered weak for the purposes of this mutation.
Default false
visibilitystring
Can be: sync, async or deferred If sync the request will not return until the requested changes are visible to subsequent queries, if async the request will return immediately when the changes have been committed, but it might still be a second or so until you can see the change reflected in a query. For maximum performance, use async always, except when you need your next query to see the changes you made. deferred is the fastest way to write. It bypasses the real time indexing completely, and should be used in cases where you are bulk importing/mutating a large number of documents and don't need to see that data in a query for several tens of seconds.
Default "sync"
dryRunboolean
If true, the mutation will be validated but not executed
tagstring
Request tags are values assigned to API and CDN requests that can be used to filter and aggregate log data within
[request logs from your Sanity Content Lake](https://www.sanity.io/docs/platform-management/request-logs). Learn more in the [request tags documentation](https://www.sanity.io/docs/platform-management/reference-api-request-tags).