method

RiduClient.version

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

Read one stored revision with a locale-dependent snapshot type.

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

@param collection
The collection value.
@param id
The id value.
@param revision
The revision 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.