method

RiduClient.restoreDeleted

Restore one trashed document.

Arguments

ArgumentTypeDescription
collectionSlugThe collection value.
idstringThe id value.
optionsMutationLocaleOptions<LocaleFor<Config>> | undefinedThe options value.

Returns

The declared result.

Promise<OutputFor<Config, Slug>>

How it works

TrashCollectionSlug is an internal capability-filtered union of generated collection slugs whose contract enables trash; it is not a separate SDK export.

Full signature

RiduClient.restoreDeleted<Slug extends TrashCollectionSlug<Config>>( collection: Slug, id: string, options?: MutationLocaleOptions<LocaleFor<Config>>, ): Promise<OutputFor<Config, Slug>>

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

Related types

  • MutationLocaleOptions

    Locale and transport options shared by mutations without an optimistic-concurrency contract.

  • OutputFor

    Resolve a collection document output type.