method
BoundTypedGlobal.SaveDraft
SaveDraft stages incomplete working values without changing the live global.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
input | Draft | The input value. |
options | TypedMutationOptions | The 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)Related types
BoundTypedGlobalTyped singleton methods for reads, working drafts, publication, restoration, and discard.
TypedMutationOptionsActor, draft intent, expected revision, locale, and response controls for a generated Go mutation.