MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / create

Function create

tests/defineEntity.test.ts:295–297  ·  view source on GitHub ↗
(type: EntityName<T>, data: EntityData<T> | RequiredEntityData<T>)

Source from the content-addressed store, hash-verified

293 >(true);
294
295 function create<T>(type: EntityName<T>, data: EntityData<T> | RequiredEntityData<T>) {
296 //
297 }
298
299 create(MyEntity, { myClass: {} as MyClass });
300 // @ts-expect-error

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected