method

LocalAPI.Find

Find reads one document through the operation engine with a transport-owned projection and population plan.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
collectionstringThe collection value.
idstringThe id value.
optionsFindOptionsThe options value.

Returns

The declared result.

(store.Document, error)

Full signature

func (local *LocalAPI) Find( ctx context.Context, collection, id string, options FindOptions, ) (store.Document, error)

Source core/local.go:334

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.