method

LocalAPI.CountVersions

CountVersions counts retained, authorized collection snapshots without reading their values.

Arguments

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

Returns

The declared result.

(int, error)

Full signature

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

Source core/local.go:572

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.