method

BoundTypedCollection.Find

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

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
idstringThe id 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 (collection BoundTypedCollection[Document, Create, Update, Draft]) Find( ctx context.Context, id string, options TypedReadOptions, ) (Document, error)

Source core/typed_local.go:85

Related types

  • BoundTypedCollection

    Typed collection methods for strict writes, incomplete working drafts, publication, reads, and deletion.

  • TypedReadOptions

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