method

BoundTypedGlobal.PublishChanges

PublishChanges applies input and publishes the result in one operation. A published versioned global changes this way; Update refuses it with publish_required.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
inputUpdateThe input value.
optionsTypedMutationOptionsThe options value.

Returns

The declared result.

(Document, error)

Full signature

func (global BoundTypedGlobal[Document, Update, Draft]) PublishChanges( ctx context.Context, input Update, options TypedMutationOptions, ) (Document, error)

Source core/typed_global.go:73

Related types

  • BoundTypedGlobal

    Typed singleton methods for reads, working drafts, publication, restoration, and discard.

  • TypedMutationOptions

    Actor, draft intent, expected revision, locale, and response controls for a generated Go mutation.