@mikro-orm/core 7.0.0-dev.206 → 7.0.0-dev.208
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/entity/EntityLoader.js +2 -5
- package/package.json +1 -1
- package/utils/Configuration.d.ts +6 -0
- package/utils/Configuration.js +1 -0
- package/utils/Utils.js +1 -1
package/entity/EntityLoader.js
CHANGED
|
@@ -394,11 +394,8 @@ export class EntityLoader {
|
|
|
394
394
|
let where = await this.extractChildCondition(options, prop, true);
|
|
395
395
|
const fields = this.buildFields(options.fields, prop);
|
|
396
396
|
const exclude = Array.isArray(options.exclude) ? Utils.extractChildElements(options.exclude, prop.name) : options.exclude;
|
|
397
|
-
const options2 = { ...options };
|
|
398
|
-
delete options2
|
|
399
|
-
delete options2.offset;
|
|
400
|
-
options2.fields = fields;
|
|
401
|
-
options2.exclude = exclude;
|
|
397
|
+
const options2 = { ...options, fields, exclude };
|
|
398
|
+
['limit', 'offset', 'first', 'last', 'before', 'after', 'overfetch'].forEach(prop => delete options2[prop]);
|
|
402
399
|
options2.populate = (populate?.children ?? []);
|
|
403
400
|
if (prop.customType) {
|
|
404
401
|
ids.forEach((id, idx) => ids[idx] = QueryHelper.processCustomType(prop, id, this.driver.getPlatform()));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.208",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
package/utils/Configuration.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ declare const DEFAULTS: {
|
|
|
96
96
|
readonly createForeignKeyConstraints: true;
|
|
97
97
|
readonly ignoreSchema: readonly [];
|
|
98
98
|
readonly skipTables: readonly [];
|
|
99
|
+
readonly skipViews: readonly [];
|
|
99
100
|
readonly skipColumns: {};
|
|
100
101
|
};
|
|
101
102
|
readonly embeddables: {
|
|
@@ -850,6 +851,11 @@ export interface Options<Driver extends IDatabaseDriver = IDatabaseDriver, EM ex
|
|
|
850
851
|
* @default []
|
|
851
852
|
*/
|
|
852
853
|
skipTables?: (string | RegExp)[];
|
|
854
|
+
/**
|
|
855
|
+
* View names or patterns to skip during schema generation (e.g. PostGIS system views).
|
|
856
|
+
* @default []
|
|
857
|
+
*/
|
|
858
|
+
skipViews?: (string | RegExp)[];
|
|
853
859
|
/**
|
|
854
860
|
* Column names or patterns to skip during schema generation, keyed by table name.
|
|
855
861
|
* @default {}
|
package/utils/Configuration.js
CHANGED
package/utils/Utils.js
CHANGED
|
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
|
|
|
123
123
|
}
|
|
124
124
|
export class Utils {
|
|
125
125
|
static PK_SEPARATOR = '~~~';
|
|
126
|
-
static #ORM_VERSION = '7.0.0-dev.
|
|
126
|
+
static #ORM_VERSION = '7.0.0-dev.208';
|
|
127
127
|
/**
|
|
128
128
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
129
129
|
*/
|