method

RiduClient.publishChanges

Atomically apply edited values and publish through publish access and hooks.

Arguments

ArgumentTypeDescription
collectionSlugThe collection value.
idstringThe id value.
dataUpdateFor<Config, Slug>The data value.
optionsMutationOptions<LocaleFor<Config>> | undefinedThe 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>>

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

Related types