Skip to content

fix: prevent eager relations from being joined twice when explicitly specified - #11991

Merged
gioboa merged 5 commits into
typeorm:masterfrom
veeceey:fix/issue-11823-eager-relations-duplicate-joins
Feb 19, 2026
Merged

gioboa merged 5 commits into
typeorm:masterfrom
veeceey:fix/issue-11823-eager-relations-duplicate-joins

Conversation

@veeceey

@veeceey veeceey commented Feb 14, 2026

Copy link
Copy Markdown
Contributor

Problem

When an eager relation is also explicitly specified in the relations option of a find query, the same relation table gets joined twice with different aliases. This results in redundant SQL JOINs, which hurts query performance and produces unnecessarily large result sets.

For example, given these entities:

// Editor has an eager OneToOne relation to User
@OneToOne(() => User, { eager: true })
@JoinColumn()
user: User

// User has a DeleteDateColumn and an eager OneToOne to Profile
@DeleteDateColumn()
deletedAt?: Date

@OneToOne(() => Profile, { eager: true })
@JoinColumn()
profile: Profile

Running this query:

connection.manager.findOne(Editor, {
    where: { userId: 1 },
    relations: { user: { nestedProfile: true } },
})

Would generate SQL with duplicate joins for the user and profile tables (once from the explicit relations processing, once from the eager relations processing).

Root Cause

In FindOptionsUtils.joinEagerRelations(), the dedup check that detects if a relation has already been joined included a condition join.condition !== undefined. This check rejected any existing join that had a condition set on it.

However, when the joined entity has a @DeleteDateColumn, TypeORM automatically adds a "alias"."deletedAt" IS NULL condition to the join. This meant the dedup check would never match joins for entities with soft-delete columns, causing the eager relation to be added again with a different alias.

Fix

Removed the join.condition !== undefined check from the dedup logic. The remaining checks (mapToProperty, isMappingMany, direction, and entityOrProperty) are sufficient to correctly identify duplicate joins. The condition on the join is an implementation detail added by TypeORM's join processing and shouldn't affect whether two joins are for the same relation.

Test

Added a test that inspects the generated SQL to verify the user table is only joined once when an eager relation with @DeleteDateColumn is explicitly specified in relations.

Fixes #11823

…specified

When an eager relation is also explicitly specified in the `relations` option
of a find query, the relation was joined twice with different aliases. This
happened because the dedup check in `joinEagerRelations` rejected existing
joins that had a condition set (e.g., from DeleteDateColumn), causing it to
add a duplicate join.

Removed the `join.condition !== undefined` check from the dedup logic in
`joinEagerRelations`, since conditions added automatically by TypeORM
(like DeleteDateColumn soft-delete filters) should not prevent dedup matching.

Fixes typeorm#11823
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

User description

Problem

When an eager relation is also explicitly specified in the relations option of a find query, the same relation table gets joined twice with different aliases. This results in redundant SQL JOINs, which hurts query performance and produces unnecessarily large result sets.

For example, given these entities:

// Editor has an eager OneToOne relation to User
@OneToOne(() => User, { eager: true })
@JoinColumn()
user: User

// User has a DeleteDateColumn and an eager OneToOne to Profile
@DeleteDateColumn()
deletedAt?: Date

@OneToOne(() => Profile, { eager: true })
@JoinColumn()
profile: Profile

Running this query:

connection.manager.findOne(Editor, {
    where: { userId: 1 },
    relations: { user: { nestedProfile: true } },
})

Would generate SQL with duplicate joins for the user and profile tables (once from the explicit relations processing, once from the eager relations processing).

Root Cause

In FindOptionsUtils.joinEagerRelations(), the dedup check that detects if a relation has already been joined included a condition join.condition !== undefined. This check rejected any existing join that had a condition set on it.

However, when the joined entity has a @DeleteDateColumn, TypeORM automatically adds a "alias"."deletedAt" IS NULL condition to the join. This meant the dedup check would never match joins for entities with soft-delete columns, causing the eager relation to be added again with a different alias.

Fix

Removed the join.condition !== undefined check from the dedup logic. The remaining checks (mapToProperty, isMappingMany, direction, and entityOrProperty) are sufficient to correctly identify duplicate joins. The condition on the join is an implementation detail added by TypeORM's join processing and shouldn't affect whether two joins are for the same relation.

Test

Added a test that inspects the generated SQL to verify the user table is only joined once when an eager relation with @DeleteDateColumn is explicitly specified in relations.

Fixes #11823


PR Type

Bug fix


Description

  • Prevent eager relations from being joined twice when explicitly specified

  • Remove condition check from dedup logic in joinEagerRelations

  • Fix duplicate joins for entities with @DeleteDateColumn soft-delete columns

  • Add test verifying single join for eager relations with soft-delete columns


Diagram Walkthrough

flowchart LR
  A["Eager relation + explicit relation specification"] -->|Previously| B["Duplicate joins with different aliases"]
  A -->|After fix| C["Single join with correct alias"]
  D["DeleteDateColumn adds condition to join"] -->|Removed check| E["Condition no longer blocks dedup matching"]
Loading

File Walkthrough

Relevant files
Bug fix
FindOptionsUtils.ts
Remove condition check from join dedup logic                         

src/find-options/FindOptionsUtils.ts

  • Removed join.condition !== undefined check from dedup logic in
    joinEagerRelations method
  • Added JSDoc @param annotations for several methods (isFindOneOptions,
    isFindManyOptions, extractFindManyOptionsAlias,
    applyRelationsRecursively)
  • Removed TODO comment about reviewing the validation
+8/-2     
Tests
basic-eager-relations.test.ts
Add test for duplicate eager relation joins                           

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts

  • Added new test case verifying eager relations are not joined twice
    when explicitly specified
  • Test creates nested profile relationship and inspects generated SQL
  • Validates that user table is joined only once despite being both eager
    and explicitly specified
  • Includes comments explaining the previous bug with DeleteDateColumn
    entities
+38/-0   

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Feb 14, 2026 •

Copy link
Copy Markdown

PR Code Suggestions ✨

Latest suggestions up to 87549e2

CategorySuggestion                                                                                                                                    Impact
Possible issue
Make the test driver-agnostic

Refactor the test to assert against the query builder's join metadata
(expressionMap.joinAttributes) instead of using a regular expression on the raw
SQL string to make it more robust and driver-agnostic.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts [217-236]

-// Build the query to inspect the generated SQL
-const sql = connection.manager
+const qb = connection.manager
     .getRepository(Editor)
     .metadata.connection.createQueryBuilder(Editor, "Editor")
     .setFindOptions({
         where: { userId: 1 },
         relations: {
             user: {
                 nestedProfile: true,
             },
         },
     })
-    .getQuery()
 
-// The user table should only be joined once, not twice
-// Previously, eager relations with DeleteDateColumn would
-// cause the user table to be joined twice with different aliases
-const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
-    .length
-expect(userJoinCount).to.equal(1)
+const userJoins = qb.expressionMap.joinAttributes.filter(
+    (j) =>
+        j.direction === "LEFT" &&
+        j.entityOrProperty === "Editor.user" &&
+        j.mapToProperty === undefined &&
+        j.isMappingMany === undefined,
+)
+expect(userJoins).to.have.length(1)
  • Apply / Chat
Suggestion importance[1-10]: 7

__

Why: The suggestion correctly identifies that asserting against raw SQL is brittle and proposes a more robust, driver-agnostic approach by inspecting the query builder's expressionMap, which improves test reliability.

Medium
  • More

Previous suggestions

Suggestions up to commit dbc2122
CategorySuggestion                                                                                                                                    Impact
Possible issue
Avoid de-duping conditional joins

Reintroduce a check for join.condition in the join de-duplication logic. The
current change incorrectly de-duplicates joins with custom conditions, which
could cause required conditional joins to be skipped.

src/find-options/FindOptionsUtils.ts [245-254]

 for (const join of qb.expressionMap.joinAttributes) {
     if (
         join.mapToProperty !== undefined ||
         join.isMappingMany !== undefined ||
         join.direction !== "LEFT" ||
         join.entityOrProperty !==
             `${alias}.${relation.propertyPath}`
     )
         continue
 
+    // Only de-dupe against the "plain" relation join (no extra condition),
+    // so custom conditional joins don't get skipped.
+    if (join.condition != null && join.condition.trim() !== "") continue
+
     addJoin = false
     break
 }
Suggestion importance[1-10]: 9

__

Why: The suggestion correctly identifies a significant regression introduced by the PR, where removing the join.condition check could cause necessary conditional joins to be skipped, potentially breaking existing functionality.

High
Make SQL join assertion robust

Improve the test's SQL assertion by using a more specific regex to count LEFT
JOIN statements on the user table. This will prevent false positives and make
the test more robust across different database drivers.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts [218-236]

 const sql = connection.manager
     .getRepository(Editor)
     .metadata.connection.createQueryBuilder(Editor, "Editor")
     .setFindOptions({
         where: { userId: 1 },
         relations: {
             user: {
                 nestedProfile: true,
             },
         },
     })
-    .getQuery()
+    .getSql()
 
 // The user table should only be joined once, not twice
 // Previously, eager relations with DeleteDateColumn would
 // cause the user table to be joined twice with different aliases
-const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
+const userJoinCount = (sql.match(/LEFT\s+JOIN\s+["`]?user["`]?\b/gi) || [])
     .length
 expect(userJoinCount).to.equal(1)
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies that the regex /.user./ is too permissive and could lead to a flaky test; proposing a more robust regex improves the quality and reliability of the new test case.

Low
Suggestions up to commit a2c83e1
CategorySuggestion                                                                                                                                    Impact
General
Make join-count assertion robust

Improve the test's join-counting logic by using a more robust regex that
accounts for different SQL quoting styles and uses table metadata for accuracy.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts [234-236]

-const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
-    .length
+const userTablePath = connection.getMetadata(User).tablePath
+const userJoinRegex = new RegExp(
+    String.raw`LEFT\s+JOIN\s+["\` + "`" + String.raw`\[]?` +
+        userTablePath.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") +
+        String.raw`["\` + "`" + String.raw`\]]?`,
+    "gi",
+)
+const userJoinCount = (sql.match(userJoinRegex) || []).length
 expect(userJoinCount).to.equal(1)
Suggestion importance[1-10]: 6

__

Why: The suggestion correctly identifies that the regex for counting joins is brittle and proposes a more robust solution using table metadata, which improves test stability across different database drivers.

Low
Suggestions up to commit 34e9c35
CategorySuggestion                                                                                                                                    Impact
Possible issue
Avoid skipping non-equivalent joins

To prevent incorrect query semantics, modify the join de-duplication logic to
compare join.condition and only skip adding joins that are truly equivalent.

src/find-options/FindOptionsUtils.ts [245-258]

 for (const join of qb.expressionMap.joinAttributes) {
     if (
         join.mapToProperty !== undefined ||
         join.isMappingMany !== undefined ||
         join.direction !== "LEFT" ||
         join.entityOrProperty !== alias + "." + relation.propertyPath
     )
         continue
 
+    // Only treat as duplicate if the join condition matches as well.
+    // (Undefined and empty-string conditions should be considered equivalent.)
+    const existingCondition = (join.condition ?? "").trim()
+    const nextCondition = (condition ?? "").trim()
+    if (existingCondition !== nextCondition) continue
+
     addJoin = false
     break
 }
Suggestion importance[1-10]: 9

__

Why: The suggestion correctly identifies a significant logical flaw in the PR where removing the join.condition check can lead to incorrect query behavior by skipping necessary joins.

High
Assert joins without SQL parsing

Improve test robustness by inspecting the query builder's join metadata directly
instead of relying on brittle SQL string parsing for assertions.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts [218-236]

-const sql = connection.manager
+const qb = connection.manager
     .getRepository(Editor)
-    .metadata.connection.createQueryBuilder(Editor, "Editor")
+    .createQueryBuilder("Editor")
     .setFindOptions({
         where: { userId: 1 },
         relations: {
             user: {
                 nestedProfile: true,
             },
         },
     })
-    .getQuery()
 
-const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
-    .length
+const userJoinCount = qb.expressionMap.joinAttributes.filter(
+    (j) => j.direction === "LEFT" && j.entityOrProperty === "Editor.user",
+).length
 expect(userJoinCount).to.equal(1)
Suggestion importance[1-10]: 7

__

Why: The suggestion correctly points out that testing via SQL string matching is brittle and proposes a more robust, database-agnostic approach by inspecting the query builder's internal state.

Medium
General
Make SQL join regex robust

Refine the SQL-based test assertion by using a more specific regular expression
to accurately match the user table join, accounting for optional quoting and
word boundaries.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts [234-236]

-const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
-    .length
+const userJoinCount =
+    (sql.match(/\bLEFT\s+JOIN\s+["`[\]]?user["`\]]?\b/gi) || []).length
 expect(userJoinCount).to.equal(1)
Suggestion importance[1-10]: 5

__

Why: The suggestion offers a valid improvement to the test's regular expression, making it more precise and less prone to false positives, which enhances test reliability.

Low
Suggestions up to commit 7a0c5db
CategorySuggestion                                                                                                                                    Impact
Possible issue
Skip duplicate joins by alias

To prevent re-joining explicitly specified relations, enhance the duplicate-join
check by comparing the generated alias for the relation against existing join
aliases.

src/find-options/FindOptionsUtils.ts [245-256]

 let addJoin = true
-// TODO: Review this validation
+const joinAlias = `${alias}_${relation.propertyName}`
 for (const join of qb.expressionMap.joinAttributes) {
+    // if we already have a join with this same alias, skip it
+    if (join.alias.name === joinAlias) {
+        addJoin = false
+        break
+    }
     if (
         join.mapToProperty !== undefined ||
         join.isMappingMany !== undefined ||
         join.direction !== "LEFT"
     ) {
-        addJoin = false
-        break
+        continue
     }
 }
Suggestion importance[1-10]: 8

__

Why: This suggestion proposes a more robust fix for the duplicate join issue by checking join aliases, which directly addresses the root cause more effectively than the PR's current change.

Medium
General
Strengthen join‐matching regex

Refine the regex to more accurately match LEFT JOIN on the user table by
requiring whitespace and optional aliasing, preventing mismatches with column
references.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts [234-236]

-const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
+const userJoinCount = (sql.match(/LEFT JOIN\s+"?user"?\s+AS\s+\w+/gi) || [])
     .length
 expect(userJoinCount).to.equal(1)
Suggestion importance[1-10]: 6

__

Why: This suggestion correctly identifies that the regex in the new test is too broad and could lead to false positives, proposing a more precise pattern that improves test reliability.

Low

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Feb 14, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (2) 📎 Requirement gaps (0)

Grey Divider


Remediation recommended

1. Empty @PARAM JSDoc tags 📘 Rule violation ✓ Correctness
Description
New JSDoc @param tags were added without any descriptions, which adds comment noise without
improving clarity. This conflicts with the requirement to avoid AI-like/low-value comment additions
and keep style consistent.
Code

src/find-options/FindOptionsUtils.ts[R117-121]

+     * @param qb
+     * @param allRelations
+     * @param alias
+     * @param metadata
+     * @param prefix
Evidence
Compliance ID 4 requires avoiding AI-generated noise such as extra comments and inconsistent style;
the PR adds multiple @param lines with no description content, which is low-signal documentation
noise.

Rule 4: Remove AI-generated noise
src/find-options/FindOptionsUtils.ts[22-22]
src/find-options/FindOptionsUtils.ts[54-54]
src/find-options/FindOptionsUtils.ts[76-76]
src/find-options/FindOptionsUtils.ts[117-121]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
New JSDoc `@param` tags were added without descriptions, which adds low-value comment noise and may be considered AI-generated slop.
## Issue Context
This repository's compliance requires avoiding extra/noisy comments and maintaining consistent style.
## Fix Focus Areas
- src/find-options/FindOptionsUtils.ts[20-22]
- src/find-options/FindOptionsUtils.ts[52-54]
- src/find-options/FindOptionsUtils.ts[74-76]
- src/find-options/FindOptionsUtils.ts[116-121]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


✅ 2. Test lacks issue reference 📘 Rule violation ✓ Correctness
Description
The newly added functional test for the issue fix does not include an issue reference comment (e.g.,
#11823) even though it is an issue-driven change. This reduces traceability from the test back to
the reported bug.
Code

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts[R202-203]

+    it("should not join eager relations twice when explicitly specified with DeleteDateColumn entity", () =>
+        Promise.all(
Evidence
Compliance ID 3 asks that issue fixes in test/functional include an issue reference in the test
comment when applicable; this test was added for a specific reported issue but contains no #11823
reference in/near the test definition.

Rule 3: Prefer functional tests over per-issue tests
test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts[202-203]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The new functional test added for an issue fix does not include an issue reference comment, reducing traceability.
## Issue Context
The checklist asks for an issue reference in the test comment when applicable for issue-driven fixes.
## Fix Focus Areas
- test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts[202-206]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Conditional join dedup risk 🐞 Bug ✓ Correctness
Description
By no longer excluding joins that have joinAttribute.condition set, eager-loading may reuse an
existing join that was added with a custom ON condition, potentially filtering the eagerly-loaded
relation unexpectedly. This is a behavior change vs. the previous logic and can silently change
result shapes for callers who combine manual joins with eager loading.
Code

src/find-options/FindOptionsUtils.ts[R245-249]

       for (const join of qb.expressionMap.joinAttributes) {
           if (
-                    join.condition !== undefined ||
               join.mapToProperty !== undefined ||
               join.isMappingMany !== undefined ||
               join.direction !== "LEFT" ||
Evidence
joinEagerRelations now treats any LEFT join on the same entityOrProperty as a duplicate
regardless of join.condition, and reuses that alias. joinAttribute.condition can be
caller-supplied (custom ON condition) and TypeORM also mutates it to append soft-delete predicates;
therefore ignoring it can cause eager loading to reuse a filtered join alias and change loaded
relation contents.

src/find-options/FindOptionsUtils.ts[228-258]
src/query-builder/SelectQueryBuilder.ts[2165-2193]
src/query-builder/SelectQueryBuilder.ts[2216-2224]
src/query-builder/SelectQueryBuilder.ts[3503-3509]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
`FindOptionsUtils.joinEagerRelations` now ignores `joinAttribute.condition` entirely when deciding whether a relation was already joined. This can cause eager-loading to reuse a manually-added join that has a custom ON condition, potentially filtering the eager relation unexpectedly.
### Issue Context
`SelectQueryBuilder.join()` accepts an optional `condition` parameter and stores it in `joinAttribute.condition`. TypeORM also appends soft-delete predicates (e.g., `alias.deletedAt IS NULL`) into `joinAttribute.condition` automatically for entities with `DeleteDateColumn`. The PR fix is targeted at the latter, but removing condition checks entirely may change semantics for the former.
### Fix Focus Areas
- src/find-options/FindOptionsUtils.ts[242-258]
- src/query-builder/SelectQueryBuilder.ts[2165-2193]
- src/query-builder/SelectQueryBuilder.ts[2216-2224]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Advisory comments

4. Test SQL match robustness 🐞 Bug ⛯ Reliability
Description
The new regression test counts joins using a hard-coded SQL regex for user, which is somewhat
naming-strategy/quoting dependent; it may be more stable to derive the table name from metadata or
count joins via expressionMap.joinAttributes. This is test-only but can reduce future flakiness if
naming strategies change.
Code

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts[R234-236]

+                const userJoinCount = (sql.match(/LEFT JOIN .user./gi) || [])
+                    .length
+                expect(userJoinCount).to.equal(1)
Evidence
The test asserts join count by matching raw SQL text for the substring user. Since User uses
@Entity() without an explicit table name, the final table name is determined by naming strategy
and may not always contain the literal user substring.

test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts[202-237]
test/functional/relations/eager-relations/basic-eager-relations/entity/User.ts[12-15]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The regression test asserts join count using a hard-coded SQL regex that assumes the physical table name includes the substring `user`.
### Issue Context
`@Entity()` without an explicit name means the table name comes from the naming strategy, and raw SQL formatting varies by driver.
### Fix Focus Areas
- test/functional/relations/eager-relations/basic-eager-relations/basic-eager-relations.test.ts[217-236]
- test/functional/relations/eager-relations/basic-eager-relations/entity/User.ts[12-32]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help @veeceey

@pkg-pr-new

pkg-pr-new Bot commented Feb 14, 2026 •

Copy link
Copy Markdown
  • typeorm-sql-js-example

    npm i https://pkg.pr.new/typeorm/typeorm@11991
    

commit: 87549e2

- Remove description-less @PARAM annotations that add noise without value
- Add typeorm#11823 issue reference to the test name for traceability

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@veeceey

veeceey commented Feb 16, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @gioboa! Happy to help. Let me know if there's anything else you'd like me to adjust.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit 34e9c35

@veeceey

veeceey commented Feb 17, 2026

Copy link
Copy Markdown
Contributor Author

Hi team, friendly bump on this PR — it fixes duplicate JOINs when an eager relation is also explicitly listed in the relations option. The root cause was a condition check in joinEagerRelations that rejected valid dedup matches. Tests are passing. Would appreciate a review when someone has a chance!

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your help @veeceey
LGTM 👍

@gioboa
gioboa requested review from alumni and naorpeled February 17, 2026 09:14
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit a2c83e1

@coveralls

coveralls commented Feb 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 81.177% (-0.005%) from 81.182%
when pulling dbc2122 on veeceey:fix/issue-11823-eager-relations-duplicate-joins
into e71108f on typeorm:master.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Persistent review updated to latest commit dbc2122

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@gioboa
gioboa merged commit 1fa4129 into typeorm:master Feb 19, 2026
38 checks passed
@pkuczynski pkuczynski added this to the 1.0 milestone Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Eager relations are joined twice

5 participants