Interface: ContentImportOptions
Defined in: packages/client/src/core/content-transfer.ts:167
Controls how ClientStack.importContent reconciles against the datamodel.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
onMissingClass? | "skip" | "fail" | What to do with a document whose class this stack does not have. "skip" (default) records an issue and carries on; "fail" throws. Creating the class is deliberately not offered: the export carries no schema, so DocStack would have to infer one from the data and would get it wrong. Apply the patch that defines the class first. | packages/client/src/core/content-transfer.ts:176 |
onUnknownAttribute? | "fail" | "strip" | "keep" | What to do with an attribute the target class does not define. "strip" (default) drops it and records an issue; "fail" throws; "keep" passes it through to schema validation, which will reject it. | packages/client/src/core/content-transfer.ts:182 |
overwrite? | boolean | Replace a document that already exists. Defaults to false, which records a conflict and leaves the stored document alone. | packages/client/src/core/content-transfer.ts:187 |