@mikro-orm/knex 6.0.0-dev.15 → 6.0.0-dev.17

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.
@@ -553,12 +553,15 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
553
553
  getFieldsForJoinedLoad(qb, meta, explicitFields, populate = [], parentTableAlias, parentJoinPath) {
554
554
  const fields = [];
555
555
  const joinedProps = this.joinedProps(meta, populate);
556
+ if (explicitFields?.includes('*')) {
557
+ fields.push('*');
558
+ }
556
559
  const shouldHaveColumn = (prop, populate, fields) => {
557
560
  if (!this.platform.shouldHaveColumn(prop, populate)) {
558
561
  return false;
559
562
  }
560
563
  if (!fields || prop.primary) {
561
- return true;
564
+ return !fields?.includes('*');
562
565
  }
563
566
  return fields.includes(prop.name);
564
567
  };
package/index.mjs CHANGED
@@ -86,7 +86,6 @@ export const Index = mod.Index;
86
86
  export const IntegerType = mod.IntegerType;
87
87
  export const InvalidFieldNameException = mod.InvalidFieldNameException;
88
88
  export const IsolationLevel = mod.IsolationLevel;
89
- export const JavaScriptMetadataProvider = mod.JavaScriptMetadataProvider;
90
89
  export const JsonProperty = mod.JsonProperty;
91
90
  export const JsonType = mod.JsonType;
92
91
  export const Knex = mod.Knex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.0.0-dev.15",
3
+ "version": "6.0.0-dev.17",
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",
@@ -63,9 +63,9 @@
63
63
  "sqlstring": "2.3.3"
64
64
  },
65
65
  "devDependencies": {
66
- "@mikro-orm/core": "^5.6.0"
66
+ "@mikro-orm/core": "^5.6.2"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "~6.0.0-dev.15"
69
+ "@mikro-orm/core": "~6.0.0-dev.17"
70
70
  }
71
71
  }