TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
This report summarizes scanner evidence for mikro-orm/mikro-orm, a TypeScript project with 9,263 GitHub stars. SynthScan examined 574,898 lines of code across 2725 source files, recording 485 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 1.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 62 finding(s).
Are imports declared and package/API names verified? 423 finding(s).
Are wrappers, guards, and repeated structures necessary? 29 finding(s).
Which changes need focused human review? 485 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 485 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/bench/types/other-types.ts | 95 | useEntityData<Author>({ name: 'test', email: 'test@test.com' }); | CODE |
| LOW | tests/bench/types/other-types.ts | 114 | useRequiredData<Author>({ name: 'test', email: 'test@test.com' }); | CODE |
| LOW | tests/features/pivot-table-upsert.test.ts | 77 | const author = orm.em.create(Author, { name: 'John Doe' }); | CODE |
| LOW | tests/features/pivot-table-upsert.test.ts | 113 | const author = orm.em.create(Author, { name: 'Jane Doe' }); | CODE |
| LOW | tests/features/define-entity-setclass.sqlite.test.ts | 69 | expect(author.fullName()).toBe('John Doe'); | CODE |
| LOW | tests/features/filters/GH6460.test.ts | 67 | const author = orm.em.create(Author, { name: 'John Doe', deletedAt: new Date() }); | CODE |
| LOW | tests/features/filters/GH6484.test.ts | 75 | const author = orm.em.create(Author, { name: 'John Doe', pen: { brand: 'Bic', active: true } }); | CODE |
| LOW | tests/features/filters/GH6943.test.ts | 68 | const user = orm.em.create(User, { email: 'user@example.com', account }); | CODE |
| LOW | tests/features/filters/GH6943.test.ts | 101 | expect(userAfter?.email).toBe('user@example.com'); | CODE |
| LOW | …er-type-inheritance/table-per-type-inheritance.test.ts | 2147 | expect(loaded.fullName).toBe('John Doe'); | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2251 | name: 'John Doe', | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2252 | address: { street: '123 Main St', city: 'Springfield', zipCode: '12345' }, | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2258 | expect(loaded.name).toBe('John Doe'); | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2259 | expect(loaded.address.street).toBe('123 Main St'); | CODE |
| LOW | …er-type-inheritance/table-per-type-inheritance.test.ts | 2781 | address: { street: '123 Main St', city: 'Springfield' }, | CODE |
| LOW | …er-type-inheritance/table-per-type-inheritance.test.ts | 2793 | expect(loadedEmployee.address.street).toBe('123 Main St'); | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2920 | const address = orm.em.create(Address7453, { street: '123 Main St' }); | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2922 | name: 'John Doe', | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2930 | const person = await orm.em.findOneOrFail(Person7453, { name: 'John Doe' }, { populate: ['*'] }); | CODE |
| LOW⚡ | …er-type-inheritance/table-per-type-inheritance.test.ts | 2934 | expect((person as Employee7453).address!.unwrap().street).toBe('123 Main St'); | CODE |
| LOW | …er-type-inheritance/table-per-type-inheritance.test.ts | 2949 | name: 'Jane Doe', | CODE |
| LOW | …er-type-inheritance/table-per-type-inheritance.test.ts | 2956 | const person = await orm.em.findOneOrFail(Person7453, { name: 'Jane Doe' }, { populate: true as any }); | CODE |
| LOW⚡ | tests/features/custom-types/GH6050.test.ts | 46 | email: 'test@test.com', | CODE |
| LOW⚡ | tests/features/custom-types/GH6050.test.ts | 52 | const user2 = await orm.em.findOneOrFail(User, { email: 'test@test.com' }); | CODE |
| LOW⚡ | tests/features/custom-types/GH6050.test.ts | 58 | email: 'test@test.com', | CODE |
| LOW⚡ | tests/features/custom-types/GH6050.test.ts | 64 | const user2 = await orm.em.findOneOrFail(User, { email: 'test@test.com' }); | CODE |
| LOW | tests/features/custom-types/GH6050.test.ts | 77 | const user3 = await orm.em.findOneOrFail(User, { email: 'test@test.com' }); | CODE |
| LOW | …/features/composite-keys/composite-keys.sqlite.test.ts | 363 | const owner = new CarOwner12('John Doe'); | CODE |
| LOW | …/features/composite-keys/composite-keys.sqlite.test.ts | 372 | name: 'John Doe', | CODE |
| LOW | …/features/composite-keys/composite-keys.sqlite.test.ts | 387 | name: 'John Doe', | CODE |
| LOW | …s/features/composite-keys/composite-keys.mysql.test.ts | 117 | const owner = new CarOwner2('John Doe'); | CODE |
| LOW | …s/features/composite-keys/composite-keys.mysql.test.ts | 126 | name: 'John Doe', | CODE |
| LOW | …s/features/composite-keys/composite-keys.mysql.test.ts | 141 | name: 'John Doe', | CODE |
| LOW | …features/compiled-functions/compiled-functions.test.ts | 163 | address: { street: '123 Main St', city: 'Springfield' }, | CODE |
| LOW | …features/compiled-functions/compiled-functions.test.ts | 170 | address: { street: '123 Main St', city: 'Springfield' }, | CODE |
| LOW | …features/compiled-functions/compiled-functions.test.ts | 188 | const testRow = { id: 1, name: 'John', address_street: '123 Main St', address_city: 'Springfield' }; | CODE |
| LOW | …ic-relations/polymorphic-composite-keys.sqlite.test.ts | 127 | const org = new Organization(1, 100, 'Acme Corp'); | CODE |
| LOW | …ic-relations/polymorphic-composite-keys.sqlite.test.ts | 143 | expect(loadedOrg.name).toBe('Acme Corp'); | CODE |
| LOW | …ic-relations/polymorphic-composite-keys.sqlite.test.ts | 147 | const user = new User(1, 42, 'user@example.com'); | CODE |
| LOW | …ic-relations/polymorphic-composite-keys.sqlite.test.ts | 163 | expect(loadedUser.email).toBe('user@example.com'); | CODE |
| LOW | …morphic-relations/polymorphic-relations.sqlite.test.ts | 1119 | const org = new Organization('Acme Corp'); | CODE |
| LOW | tests/features/upsert/GH7399.test.ts | 64 | user.email = 'foo@bar.com'; | CODE |
| LOW | …s/entity-assigner/assign-unpersisted-reference.test.ts | 50 | const author = orm.em.create(Author, { name: 'John Doe' }); | CODE |
| LOW | …s/native-query-builder/MsSqlNativeQueryBuilder.test.ts | 82 | name: 'John Doe', | CODE |
| LOW | …s/native-query-builder/MsSqlNativeQueryBuilder.test.ts | 90 | params: ['bar', 1, 1, 'John Doe', date], | CODE |
| LOW | …/native-query-builder/OracleNativeQueryBuilder.test.ts | 82 | name: 'John Doe', | CODE |
| LOW | …/native-query-builder/OracleNativeQueryBuilder.test.ts | 90 | params: ['bar', 1, 1, 'John Doe', date], | CODE |
| LOW | …s/native-query-builder/MySqlNativeQueryBuilder.test.ts | 77 | name: 'John Doe', | CODE |
| LOW | …s/native-query-builder/MySqlNativeQueryBuilder.test.ts | 85 | params: ['bar', 'John Doe', date, 1, 1], | CODE |
| LOW | tests/features/clone/clone.test.ts | 431 | address: { street: '123 Main St', city: 'Springfield' }, | CODE |
| LOW | tests/features/clone/clone.test.ts | 438 | loaded.name = 'Acme Inc'; | CODE |
| LOW | tests/features/clone/clone.test.ts | 458 | address: { street: '123 Main St', city: 'Springfield' }, | CODE |
| LOW | tests/features/clone/clone.test.ts | 471 | expect(cloned.address.street).toBe('123 Main St'); | CODE |
| LOW | tests/features/clone/clone.test.ts | 661 | loaded.name = 'Acme Inc'; | CODE |
| LOW | tests/features/clone/clone.test.ts | 667 | { name: 'Acme Inc' }, | CODE |
| LOW⚡ | …k-relation-target/non-pk-relation-target.mongo.test.ts | 71 | const author = orm.em.create(Author, { uuid: 'uuid-123', name: 'John Doe' }); | CODE |
| LOW⚡ | …k-relation-target/non-pk-relation-target.mongo.test.ts | 76 | const loadedAuthor = await orm.em.findOneOrFail(Author, { name: 'John Doe' }); | CODE |
| LOW⚡ | …k-relation-target/non-pk-relation-target.mongo.test.ts | 84 | expect(loadedBook.author.unwrap().name).toBe('John Doe'); | CODE |
| LOW | …elation-target/non-pk-relation-target.postgres.test.ts | 63 | const author = orm.em.create(Author, { uuid: 'uuid-123', name: 'John Doe' }); | CODE |
| LOW | …elation-target/non-pk-relation-target.postgres.test.ts | 68 | const loadedAuthor = await orm.em.findOneOrFail(Author, { name: 'John Doe' }); | CODE |
| 363 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …features/compiled-functions/compiled-functions.test.ts | 61 | function generateCompiledFunctions(fromOrm: MikroORM): Record<string, (...args: any[]) => any> { | CODE |
| LOW | …atures/upsert/upsert-unidentifiable-row.sqlite.test.ts | 47 | async function expectSeededRowsUntouched() { | CODE |
| LOW | tests/issues/populate-mn-after-upsert.test.ts | 96 | function upsertProductsWithMergeFields(...products: any[]) { | CODE |
| LOW | docs/plugins/changelog/Changelog.jsx | 92 | function useScrollToHashAfterMount() { | CODE |
| LOW | docs/docs/usage-with-jest.md | 99 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/docs/usage-with-jest.md | 130 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/docs/usage-with-jest.md | 154 | function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.2/usage-with-jest.md | 99 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.2/usage-with-jest.md | 130 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.2/usage-with-jest.md | 154 | function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-6.6/usage-with-jest.md | 99 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-6.6/usage-with-jest.md | 130 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-6.6/usage-with-jest.md | 154 | function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.1/usage-with-jest.md | 99 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.1/usage-with-jest.md | 130 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.1/usage-with-jest.md | 154 | function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.0/usage-with-jest.md | 99 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.0/usage-with-jest.md | 130 | export function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | docs/versioned_docs/version-7.0/usage-with-jest.md | 154 | function enableFakeTimersWithMikroOrm() { | CODE |
| LOW | …cs/src/theme/BlogPostItem/Footer/ReadMoreLink/index.js | 15 | export default function BlogPostItemFooterReadMoreLink(props) { | CODE |
| LOW | docs/src/theme/BlogPostItem/Header/Authors/index.js | 7 | export default function BlogPostItemHeaderAuthors({className}) { | CODE |
| LOW | packages/core/src/utils/rls-utils.ts | 68 | export function computeRlsFilterVariables( | CODE |
| LOW | packages/core/src/utils/rls-utils.ts | 119 | export function computeRemovedRlsVariables( | CODE |
| LOW | packages/core/src/utils/partition-utils.ts | 1 | function normalizeIdentifierSegment(segment: string): string { | CODE |
| LOW | packages/core/src/utils/partition-utils.ts | 20 | export function normalizePartitionNameForComparison(name: string): string { | CODE |
| LOW | packages/core/src/utils/partition-utils.ts | 51 | export function splitCommaSeparatedIdentifiers(value: string): string[] | null { | CODE |
| LOW | packages/oracledb/src/OracleConnection.ts | 26 | function oracleBindTypeFromRuntime(platform: OraclePlatform, runtime: string | undefined): Dictionary { | CODE |
| LOW | packages/sql/src/schema/partitioning.ts | 271 | export function normalizePartitionDefinition(value: string): string { | CODE |
| LOW | packages/sql/src/dialects/postgresql/typeOverrides.ts | 14 | export function createPostgreSqlTypeParsers(arrayParse: PostgreSqlArrayParser): Record<number, PostgreSqlValueParser> { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …atures/multiple-schemas/multiple-schemas.mssql.test.ts | 241 | // 'Author-n1:1', | COMMENT |
| LOW | …es/transactions/transaction-propagation.sqlite.test.ts | 381 | // SQLite has a single-writer limitation due to its file-based locking mechanism. | COMMENT |
| LOW | tests/issues/GH6032.test.ts | 61 | COMMENT | |
| LOW | tests/issues/GH7151.test.ts | 41 | COMMENT | |
| LOW | docs/docs/entity-generator.md | 361 | customRawType.prop = structuredClone(websitePropOnAuthor); | COMMENT |
| LOW | docs/docs/entity-generator.md | 381 | // This means we force this shape during create, selects, and serialization. | COMMENT |
| LOW | docs/blog/2023-09-10-mikro-orm-5-8-released.md | 81 | const config = user.config.indexBy('key'); | COMMENT |
| LOW | docs/versioned_docs/version-7.2/entity-generator.md | 361 | customRawType.prop = structuredClone(websitePropOnAuthor); | COMMENT |
| LOW | docs/versioned_docs/version-7.2/entity-generator.md | 381 | // This means we force this shape during create, selects, and serialization. | COMMENT |
| LOW | docs/versioned_docs/version-5.9/deployment.md | 161 | // You can toggle development mode on to better see what's going on in the webpack bundle, | COMMENT |
| LOW | docs/versioned_docs/version-6.6/entity-generator.md | 361 | customRawType.prop = structuredClone(websitePropOnAuthor); | COMMENT |
| LOW | docs/versioned_docs/version-6.6/entity-generator.md | 381 | // This means we force this shape during create, selects, and serialization. | COMMENT |
| LOW | docs/versioned_docs/version-6.6/entity-manager.md | 561 | COMMENT | |
| LOW | docs/versioned_docs/version-6.6/deployment.md | 181 | COMMENT | |
| LOW | docs/versioned_docs/version-7.1/entity-generator.md | 361 | customRawType.prop = structuredClone(websitePropOnAuthor); | COMMENT |
| LOW | docs/versioned_docs/version-7.1/entity-generator.md | 381 | // This means we force this shape during create, selects, and serialization. | COMMENT |
| LOW | docs/versioned_docs/version-7.0/entity-generator.md | 361 | customRawType.prop = structuredClone(websitePropOnAuthor); | COMMENT |
| LOW | docs/versioned_docs/version-7.0/entity-generator.md | 381 | // This means we force this shape during create, selects, and serialization. | COMMENT |
| LOW | docs/versioned_docs/version-7.0/entity-manager.md | 741 | // ('Peter 2', 'peter+2@foo.bar'), | COMMENT |
| LOW | packages/mikro-orm/src/index.ts | 1 | // THIS PACKAGE SHOULD NOT BE USED DIRECTLY | COMMENT |
| LOW | packages/core/src/metadata/MetadataDiscovery.ts | 2021 | COMMENT | |
| LOW | packages/sql/src/schema/SchemaComparator.ts | 1201 | .replace(/\binner\s+join\b/gi, 'join') | COMMENT |
| LOW | packages/sql/src/schema/partitioning.ts | 81 | } | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 205 | // Step 1: Add first materialized view | COMMENT |
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 212 | // Step 2: Add second materialized view | COMMENT |
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 219 | // Step 3: Modify first materialized view | COMMENT |
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 226 | // Step 4: Remove second materialized view | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 205 | // Step 1: Add first materialized view | COMMENT |
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 212 | // Step 2: Add second materialized view | COMMENT |
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 219 | // Step 3: Modify first materialized view | COMMENT |
| LOW⚡ | …a-generator/materialized-view-diffing.postgres.test.ts | 226 | // Step 4: Remove second materialized view | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/plugins/changelog/releases.json | 394 | "body": "# [6.5.0](https://github.com/mikro-orm/mikro-orm/compare/v6.4.16...v6.5.0) (2025-08-27)\r\n\r\nhttps://mikr | CODE |
| MEDIUM | docs/src/pages/index.js | 163 | // seamless loop: when the first set scrolls away, reset | COMMENT |