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

Function createClass

pods/server/src/__tests__/minmodel.ts:39–41  ·  view source on GitHub ↗
(_class: Ref<Class<Obj>>, attributes: Data<Class<Obj>>)

Source from the content-addressed store, hash-verified

37export const txFactory = new TxFactory(core.account.System)
38
39export function createClass (_class: Ref<Class<Obj>>, attributes: Data<Class<Obj>>): TxCreateDoc<Doc> {
40 return txFactory.createTxCreateDoc(core.class.Class, core.space.Model, attributes, _class)
41}
42
43/**
44 * @public

Callers 1

genMinModelFunction · 0.70

Calls 1

createTxCreateDocMethod · 0.80

Tested by

no test coverage detected