MCPcopy
hub / github.com/hcengineering/platform / createDoc

Function createDoc

plugins/process-resources/src/__tests__/minmodel.ts:39–41  ·  view source on GitHub ↗
(_class: Ref<Class<T>>, attributes: Data<T>, id?: Ref<T>)

Source from the content-addressed store, hash-verified

37}
38
39export function createDoc<T extends Doc> (_class: Ref<Class<T>>, attributes: Data<T>, id?: Ref<T>): TxCreateDoc<Doc> {
40 return txFactory.createTxCreateDoc(_class, core.space.Model, attributes, id)
41}
42
43export function genMinModel (): Array<TxCUD<Doc>> {
44 const txes = []

Callers 5

addAttributeFunction · 0.90
addAttributeFunction · 0.90
genMinModelFunction · 0.70

Calls 1

createTxCreateDocMethod · 0.80

Tested by

no test coverage detected