@mikro-orm/knex 6.1.8-dev.0 → 6.1.8-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.1.8-dev.0",
3
+ "version": "6.1.8-dev.1",
4
4
  "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -66,6 +66,6 @@
66
66
  "@mikro-orm/core": "^6.1.7"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.1.8-dev.0"
69
+ "@mikro-orm/core": "6.1.8-dev.1"
70
70
  }
71
71
  }
@@ -668,7 +668,7 @@ class QueryBuilder {
668
668
  break;
669
669
  }
670
670
  }
671
- return entities;
671
+ return core_1.Utils.unique(entities);
672
672
  }
673
673
  /**
674
674
  * Executes the query, returning the first result or null
@@ -697,8 +697,8 @@ class QueryBuilder {
697
697
  */
698
698
  async getResultAndCount() {
699
699
  return [
700
- await this.getResultList(),
701
- await this.getCount(),
700
+ await this.clone().getResultList(),
701
+ await this.clone().getCount(),
702
702
  ];
703
703
  }
704
704
  /**