method

RiduClient.bulkUpdate

Update an explicit set of document IDs.

Arguments

ArgumentTypeDescription
collectionSlugThe collection value.
idsreadonly string[]The ids value.
dataUpdateFor<Config, Slug>The data value.
optionsMutationLocaleOptions<LocaleFor<Config>> | undefinedThe options value.

Returns

The declared result.

Promise<OutputFor<Config, Slug>[]>

Full signature

RiduClient.bulkUpdate<Slug extends CollectionSlug<Config>>( collection: Slug, ids: readonly string[], data: UpdateFor<Config, Slug>, options?: MutationLocaleOptions<LocaleFor<Config>>, ): Promise<OutputFor<Config, Slug>[]>

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

Related types

  • CollectionSlug

    The generated union of collection slugs.

  • UpdateFor

    Resolve a collection update input type.

  • MutationLocaleOptions

    Locale and transport options shared by mutations without an optimistic-concurrency contract.

  • OutputFor

    Resolve a collection document output type.