method
LocalAPI.CountVersions
CountVersions counts retained, authorized collection snapshots without reading their values.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
id | string | The id value. |
options | FindOptions | The options value. |
Returns
The declared result.
(int, error)Full signature
func (local *LocalAPI) CountVersions(
ctx context.Context,
collection,
id string,
options FindOptions,
) (int, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
FindOptionsProjection, population, authorization, draft, trash, and locale controls for one read.