function
Import
func Import(
ctx context.Context,
target Target,
source Export,
actor *store.Document,
) (Result, error)Import each chosen record through Ridu operations.
Source migration/payload/payload.go:152
Stops on the first failed record and returns the partial Result. IDs maps source collection and source ID to the created Ridu ID. This is a normalized content importer, not automatic Payload project or database compatibility.