buildDraft

Function

Builds a draft with a subset of the model properties

Parameters

Parameter Type Default Notes
model Required IModel

item model

includeList Required string[]

list of property paths to include in draft object

Returns

Property Type Notes
data any
item Partial<IItem>

Function defined in packages/common/src/sites/drafts/build-draft.ts:8