method
RiduClient.countVersions
Count retained versions visible for one collection document.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | LocaleOptions< | The options value. |
Returns
The declared result.
Promise<CountEnvelope>Full signature
RiduClient.countVersions<Slug extends VersionCollectionSlug<Config>>(
collection: Slug,
id: string,
options?: LocaleOptions<LocaleFor<Config>>,
): Promise<CountEnvelope>Related types
VersionCollectionSlugCollection slugs with the generated versions capability.
LocaleOptionsLocalized read and write options.