orchid-orm 1.17.22 → 1.17.24

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.mjs CHANGED
@@ -1581,7 +1581,7 @@ const makeRelationQuery = (table, relationName, data, q) => {
1581
1581
  get() {
1582
1582
  var _a;
1583
1583
  const toTable = q.clone();
1584
- const query = this.q.isSubQuery ? toTable : toTable._whereExists(
1584
+ const query = this.q.isSubQuery ? toTable : toTable._all()._whereExists(
1585
1585
  this.baseQuery,
1586
1586
  (q2) => data.reverseJoin(this, toTable)
1587
1587
  );