method

LocalAPI.Version

Version preserves the exact authenticated collection identity while reading one retained revision.

Arguments

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

Returns

The declared result.

(store.Version, error)

Full signature

func (local *LocalAPI) Version( ctx context.Context, collection, id string, revision int, options FindOptions, ) (store.Version, error)

Source core/local.go:578

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.