method
RiduClient.discardDraft
Discard staged working changes while retaining the published snapshot.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
options | MutationOptions< | The options value. |
Returns
The declared result.
Promise<OutputFor<Config, Slug>>Full signature
RiduClient.discardDraft<Slug extends DraftCollectionSlug<Config>>(
collection: Slug,
id: string,
options: MutationOptions<LocaleFor<Config>> & { revision: number; },
): Promise<OutputFor<Config, Slug>>Related types
DraftCollectionSlugCollection slugs with the generated drafts capability.
MutationOptionsLocalized mutation options with optimistic concurrency.
OutputForResolve a collection document output type.