method
RiduClient.mutateJoin
RiduClient.mutateJoin<Slug extends CollectionSlug<Config>>(
collection: Slug,
id: string,
field: string,
input: JoinMutationInput,
options?: MutationLocaleOptions<LocaleFor<Config>>,
): Promise<JoinMutationEnvelope<OutputFor<Config, Slug>>>Atomically add and remove IDs through a join field.
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.