type

VersionConfig

Drafts, snapshot retention, and autosave policy.

Source ridu.go:136

Draftsbool
Allows unpublished document states.
MaxPerDocumentint
Limits retained revisions; zero uses the framework default.
AutosaveIntervaltime.Duration
Controls draft autosave frequency; zero resolves to the 30-second framework default.

Versions must be enabled on the collection/global. MaxPerDocument zero resolves to 100. AutosaveInterval zero currently resolves to 30 seconds, and a configured interval must be at least one second; it drives admin update calls rather than a server-side mutation timer. Optimistic revision checks are available through MutationOptions.