method

LocalAPI.Versions

Versions preserves the exact authenticated collection identity while reading retained revisions.

Arguments

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

Returns

The declared result.

([]store.Version, error)

Full signature

func (local *LocalAPI) Versions( ctx context.Context, collection, id string, options FindOptions, ) ([]store.Version, error)

Source core/local.go:567

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.

  • Version

    One retained version snapshot for a document.