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

Method insert

packages/core/src/entity/EntityRepository.ts:225–230  ·  view source on GitHub ↗

* @inheritDoc EntityManager.insert

(
    data: Entity | RequiredEntityData<Entity>,
    options?: NativeInsertUpdateOptions<Entity>,
  )

Source from the content-addressed store, hash-verified

223 * @inheritDoc EntityManager.insert
224 */
225 async insert(
226 data: Entity | RequiredEntityData<Entity>,
227 options?: NativeInsertUpdateOptions<Entity>,
228 ): Promise<Primary<Entity>> {
229 return this.getEntityManager().insert(this.entityName, data, options);
230 }
231
232 /**
233 * @inheritDoc EntityManager.insert

Callers

nothing calls this directly

Calls 2

getEntityManagerMethod · 0.95
insertMethod · 0.65

Tested by

no test coverage detected