method
LocalAPI.Import
Import creates a document with a migration-owned stable ID while still running ordinary access, validation, hooks, transaction, and version logic.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
collection | string | The collection value. |
values | store.Values | The values value. |
options | ImportOptions | The options value. |
Returns
The declared result.
(store.Document, error)Full signature
func (local *LocalAPI) Import(
ctx context.Context,
collection string,
values store.Values,
options ImportOptions,
) (store.Document, error)Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
ValuesA map of field names to typed values.
ImportOptionsMigration-owned source identity, status, and timestamps.
DocumentA stored document with status and version metadata.