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 common/src/sites/drafts/build-draft.ts:9