type

ImportOptions

Migration-owned source identity, status, and timestamps.

Properties

PropertyTypeDescription
Actor*store.DocumentThe Actor value.
ActorCollectionschema.CollectionSlugThe ActorCollection value.
SystemboolSystem skips access rules for trusted server code; see MutationOptions.System.
IDstringSource document identity to preserve.
Statusstore.StatusSource draft or published status to preserve.
CreatedAttime.TimeSource creation timestamp to preserve.
UpdatedAttime.TimeSource modification timestamp to preserve.

How it works

LocalAPI.Import still runs access, field validation, hooks, transaction, reference, upload, and version logic. Use only for trusted migrations.

Full signature

type ImportOptions struct { Actor *store.Document ActorCollection schema.CollectionSlug // System skips access rules for trusted server code; see MutationOptions.System. System bool // ID preserves the source document identity. ID string // Status preserves the source draft or published status. Status store.Status // CreatedAt preserves the source creation timestamp. CreatedAt time.Time // UpdatedAt preserves the source modification timestamp. UpdatedAt time.Time }

Source core/local.go:249