method
RiduClient.publishChanges
Atomically apply edited values and publish through publish access and hooks.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
data | UpdateFor< | The data value. |
options | MutationOptions< | The options value. |
Returns
The declared result.
Promise<OutputFor<Config, Slug>>Full signature
RiduClient.publishChanges<Slug extends VersionCollectionSlug<Config>>(
collection: Slug,
id: string,
data: UpdateFor<Config, Slug>,
options?: MutationOptions<LocaleFor<Config>>,
): Promise<OutputFor<Config, Slug>>Related types
VersionCollectionSlugCollection slugs with the generated versions capability.
UpdateForResolve a collection update input type.
MutationOptionsLocalized mutation options with optimistic concurrency.
OutputForResolve a collection document output type.