method

RiduClient.versions

RiduClient.versions< Slug extends VersionCollectionSlug<Config>, const Options extends LocaleOptions<LocaleFor<Config>> | undefined = undefined, >( collection: Slug, id: string, options?: Options, ): Promise< Version<LocaleResult<OutputFor<Config, Slug>, AllLocalesOutputFor<Config, Slug>, Options>>[] >

List stored versions with locale-dependent snapshot types.

Source packages/sdk/src/types.ts:961

@param collection
The collection value.
@param id
The id value.
@param options
The options value.
@returns
The declared result.

Related types

  • VersionCollectionSlug

    Collection slugs with the generated versions capability.

  • LocaleOptions

    Localized read and write options.

  • Version

    A stored version snapshot; its wire keys intentionally use capital initials.

  • OutputFor

    Resolve a collection document output type.

  • AllLocalesOutputFor

    Resolve locale-keyed collection output when generated, otherwise ordinary output.