method
LocalAPI.BulkUpdate
BulkUpdate atomically applies the same partial values to every document.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
ids | []string | The ids value. |
values | store.Values | The values value. |
options | BulkOptions | The options value. |
Returns
The declared result.
([]store.Document, error)Full signature
func (local *LocalAPI) BulkUpdate(
ctx context.Context,
collection string,
ids []string,
values store.Values,
options BulkOptions,
) ([]store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
ValuesA map of field names to typed values.
BulkOptionsBulkOptions controls the actor and localization of an atomic batch or empty-trash operation. Bulk actions do not consume per-document revisions, population, draft status, or caller IDs.
DocumentA stored document with status and version metadata.