method

LocalAPI.UpdateGlobal

UpdateGlobal updates a singleton and populates its response in the same write transaction.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
slugstringThe slug value.
valuesstore.ValuesThe values value.
optionsMutationOptionsThe 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)

Source core/local.go:715

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • Values

    A map of field names to typed values.

  • MutationOptions

    Authorization, optimistic concurrency, response population, create status, and locale controls for one write.

  • Document

    A stored document with status and version metadata.