type
TypedMutationOptions
Actor, draft intent, expected revision, locale, and response controls for a generated Go mutation.
Options
| Property | Type | Description |
|---|---|---|
ID | string | The ID value. |
Actor | *store.Document | Authenticated document used by access rules, paired with ActorCollection. |
ActorCollection | schema.CollectionSlug | The ActorCollection value. |
System | bool | Trusted server-side bypass of access rules; never infer this from an absent actor. |
ExpectedRevision | int | Fence an existing working revision so a concurrent save or lifecycle operation returns a conflict instead of overwriting it. |
Populate | []query.Population | The Populate value. |
OutputFields | []query.Path | The OutputFields value. |
Draft | *bool | True stages working content; false requests a complete published create. SaveDraft and CreateDraft force true regardless of this option. |
Locale | schema.LocaleCode | The Locale value. |
FallbackLocales | []schema.LocaleCode | The FallbackLocales value. |
DisableFallback | bool | The DisableFallback value. |
How it works
Other fields support caller-owned create IDs, returned population and output fields, and exact locale selection. The generated methods forward these options to the same LocalAPI operation engine. Draft writes defer editorial completeness only; supplied structure, access, references, and custom validators still run.
Full signature
type TypedMutationOptions struct {
ID string
Actor *store.Document
ActorCollection schema.CollectionSlug
// System skips access rules for trusted server code; see MutationOptions.System.
System bool
ExpectedRevision int
Populate []query.Population
OutputFields []query.Path
Draft *bool
Locale schema.LocaleCode
FallbackLocales []schema.LocaleCode
DisableFallback bool
}