method
RiduClient.unpublish
Return a published draft-enabled document to draft.
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.unpublish<Slug extends DraftCollectionSlug<Config>>(
collection: Slug,
id: string,
options?: MutationOptions<LocaleFor<Config>>,
): 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.