method

LocalAPI.GlobalWithOptions

func (local *LocalAPI) GlobalWithOptions( ctx context.Context, slug string, options FindOptions, ) (store.Document, error)

Read one authorized singleton with projection, population, draft, identity, and locale controls.

Source core/local.go:765

@param ctx
The ctx value.
@param slug
The slug value.
@param options
The options value.
@returns
The declared result.

Related types

  • LocalAPI

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

  • FindOptions

    Projection, population, authorization, draft, trash, and locale controls for one read.

  • Document

    A stored document with status and version metadata.