Skip to content

Commit

Permalink
fix: only query for distinct entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Rosenkranz committed May 31, 2023
1 parent c2a44a3 commit 654075e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/query-typeorm/src/query/filter-query.builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class FilterQueryBuilder<Entity> {
* @param query - the query to apply.
*/
public select(query: Query<Entity>): SelectQueryBuilder<Entity> {
let qb = this.createQueryBuilder()
let qb = this.createQueryBuilder().distinct(true)

qb = this.applyRelationJoinsRecursive(
qb,
Expand Down

0 comments on commit 654075e

Please sign in to comment.