method

RiduClient.restoreDeleted

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

Restore one trashed document.

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

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

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

Related types

  • MutationLocaleOptions

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

  • OutputFor

    Resolve a collection document output type.