method
LocalAPI.Version
Version preserves the exact authenticated collection identity while reading one retained revision.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
id | string | The id value. |
revision | int | The revision value. |
options | FindOptions | The options value. |
Returns
The declared result.
(store.Version, error)Full signature
func (local *LocalAPI) Version(
ctx context.Context,
collection,
id string,
revision int,
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.