method

BoundTypedAllLocalesCollection.Find

Find reads with the locale shape chosen by the generated definition.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
idstringThe id value.
optionsTypedReadOptionsThe options value.

Returns

The declared result.

(Document, error)

Full signature

func (collection BoundTypedAllLocalesCollection[Document]) Find( ctx context.Context, id string, options TypedReadOptions, ) (Document, error)

Source core/typed_read.go:98

Related types

  • BoundTypedAllLocalesCollection

    Typed Find and List reads with population, projection and all translations.

  • TypedReadOptions

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