type
ImportOptions
Migration-owned source identity, status, and timestamps.
Properties
| Property | Type | Description |
|---|---|---|
Actor | *store.Document | The Actor value. |
ActorCollection | schema.CollectionSlug | The ActorCollection value. |
System | bool | System skips access rules for trusted server code; see MutationOptions.System. |
ID | string | Source document identity to preserve. |
Status | store.Status | Source draft or published status to preserve. |
CreatedAt | time.Time | Source creation timestamp to preserve. |
UpdatedAt | time.Time | Source 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
}