method
LocalAPI.Versions
Versions preserves the exact authenticated collection identity while reading retained revisions.
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.
([]store.Version, error)Full signature
func (local *LocalAPI) Versions(
ctx context.Context,
collection,
id string,
options FindOptions,
) ([]store.Version, 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.
VersionOne retained version snapshot for a document.