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

Function requestCommonService

tests/issues/GH3271.test.ts:26–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 const reqEm = orm.em.fork();
25
26 async function requestCommonService() {
27 const [b] = await orm.em.getRepository(Book2).find({});
28 return b.title;
29 }
30
31 const { titleA, titleB } = await reqEm.transactional(async em => {
32 const b = await em.findOneOrFail(Book2, book.uuid);

Callers 1

GH3271.test.tsFile · 0.85

Calls 3

findMethod · 0.65
findOneMethod · 0.65
getRepositoryMethod · 0.45

Tested by

no test coverage detected