method
RiduClient.mutateJoin
Atomically add and remove IDs through a join field.
Arguments
| Argument | Type | Description |
|---|---|---|
collection | Slug | The collection value. |
id | string | The id value. |
field | string | The field value. |
input | JoinMutationInput | The input value. |
options | MutationLocaleOptions< | The options value. |
Returns
The declared result.
Promise<JoinMutationEnvelope<OutputFor<Config, Slug>>>Full signature
RiduClient.mutateJoin<Slug extends CollectionSlug<Config>>(
collection: Slug,
id: string,
field: string,
input: JoinMutationInput,
options?: MutationLocaleOptions<LocaleFor<Config>>,
): Promise<JoinMutationEnvelope<OutputFor<Config, Slug>>>Related types
CollectionSlugThe generated union of collection slugs.
JoinMutationInputIDs to add and remove atomically through a join field.
MutationLocaleOptionsLocale and transport options shared by mutations without an optimistic-concurrency contract.
JoinMutationEnvelopeThe updated document and actual join mutation counts.
OutputForResolve a collection document output type.