orchid-orm 1.13.8 → 1.13.9
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/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1309,6 +1309,7 @@ const applyRelation = (qb, { relationName, relation, dbTable, otherDbTable }, de
|
|
|
1309
1309
|
};
|
|
1310
1310
|
const makeRelationQuery = (table, relationName, data, q) => {
|
|
1311
1311
|
Object.defineProperty(table, relationName, {
|
|
1312
|
+
configurable: true,
|
|
1312
1313
|
get() {
|
|
1313
1314
|
var _a;
|
|
1314
1315
|
const toTable = q.clone();
|
|
@@ -1332,6 +1333,11 @@ const makeRelationQuery = (table, relationName, data, q) => {
|
|
|
1332
1333
|
return query[prop];
|
|
1333
1334
|
}
|
|
1334
1335
|
});
|
|
1336
|
+
},
|
|
1337
|
+
set(value) {
|
|
1338
|
+
Object.defineProperty(this, relationName, {
|
|
1339
|
+
value
|
|
1340
|
+
});
|
|
1335
1341
|
}
|
|
1336
1342
|
});
|
|
1337
1343
|
};
|