method
RiduClient.publish
Publish the current version of a document.
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.publish<Slug extends VersionCollectionSlug<Config>>(
collection: Slug,
id: string,
options?: MutationOptions<LocaleFor<Config>>,
): Promise<OutputFor<Config, Slug>>Related types
VersionCollectionSlugCollection slugs with the generated versions capability.
MutationOptionsLocalized mutation options with optimistic concurrency.
OutputForResolve a collection document output type.