method

LocalAPI.PublishChangesWithOptions

func (local *LocalAPI) PublishChangesWithOptions( ctx context.Context, collection, id string, values store.Values, options MutationOptions, ) (store.Document, error)

Atomically apply field changes and publish with exact identity, concurrency, locale, and response controls.

Source core/local.go:564

@param ctx
The ctx value.
@param collection
The collection value.
@param id
The id value.
@param values
The values 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.

  • Values

    A map of field names to typed values.

  • MutationOptions

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

  • Document

    A stored document with status and version metadata.