method
LocalAPI.UpdateGlobal
UpdateGlobal updates a singleton and populates its response in the same write transaction.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
slug | string | The slug value. |
values | store.Values | The values value. |
options | MutationOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) UpdateGlobal(
ctx context.Context,
slug string,
values store.Values,
options MutationOptions,
) (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.
MutationOptionsAuthorization, optimistic concurrency, response population, create status, and locale controls for one write.
DocumentA stored document with status and version metadata.