method

LocalAPI.MutateJoinWithOptions

func (local *LocalAPI) MutateJoinWithOptions( ctx context.Context, collection, id, field string, additions, removals []string, options MutationOptions, ) (JoinMutationResult, error)

Atomically add and remove inverse-relation IDs with complete mutation controls.

Source core/local.go:531

@param ctx
The ctx value.
@param collection
The collection value.
@param id
The id value.
@param field
The field value.
@param additions
The additions value.
@param removals
The removals value.
@param options
The options value.
@returns
The declared result.

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • MutationOptions

    Authorization, optimistic concurrency, response population, create status, and locale controls for one write.

  • JoinMutationResult

    Result of one atomic inverse-relationship mutation.