method

LocalAPI.Global

func (local *LocalAPI) Global( ctx context.Context, slug string, actor *store.Document, localeOptions ...LocaleOptions, ) (store.Document, error)

Read one authorized singleton.

Source core/local.go:751

@param ctx
The ctx value.
@param slug
The slug value.
@param actor
The actor value.
@param localeOptions
The localeOptions value.
@returns
The declared result.

GlobalWithOptions adds projection, population, draft, exact identity, and locale controls.

Related types

  • LocalAPI

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

  • Document

    A stored document with status and version metadata.

  • LocaleOptions

    Locale selection for one single-document Local API operation.