method

BoundTypedGlobal.SaveDraft

SaveDraft stages incomplete working values without changing the live global.

Arguments

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

Returns

The declared result.

(Document, error)

Full signature

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

Source core/typed_global.go:47

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.