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

Function loadOrFail

packages/core/src/entity/BaseEntity.ts:281–283  ·  view source on GitHub ↗
(options?: LoadReferenceOrFailOptions<object>)

Source from the content-addressed store, hash-verified

279 }
280
281 async loadOrFail(options?: LoadReferenceOrFailOptions<object>): Promise<object> {
282 return Reference.create(this).loadOrFail(options) as Promise<object>;
283 }
284 }
285
286 return LoadableMixin as unknown as LoadableConstructor<TBase> & TBase;

Callers

nothing calls this directly

Calls 2

loadOrFailMethod · 0.65
createMethod · 0.65

Tested by

no test coverage detected