method

BoundTypedGlobal.Find

Read one locale through the operation engine with optional population and projection.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
optionsTypedReadOptionsPopulation, projection, actor identity, draft and locale read controls.

Returns

The declared result.

(Document, error)

How it works

Use TypedReadOptions for exact actor identity, draft intent, locale selection, population and projection.

Full signature

func (global BoundTypedGlobal[Document, Update, Draft]) Find( ctx context.Context, options TypedReadOptions, ) (Document, error)

Source core/typed_global.go:32

Related types

  • BoundTypedGlobal

    Typed singleton methods for reads, working drafts, publication, restoration, and discard.

  • TypedReadOptions

    TypedReadOptions controls population/projection without changing the generated definition's single-locale or all-locales output shape.