method

LocalAPI.VersionWithOptions

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

Read one retained document revision with exact identity and locale controls.

Source core/local.go:612

@param ctx
The ctx value.
@param collection
The collection value.
@param id
The id value.
@param revision
The revision value.
@param options
The options value.
@returns
The declared result.

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.