pqb 0.11.17 → 0.11.18
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 +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3982,6 +3982,13 @@ const processSelectArg = (q, as, arg, columnAs) => {
|
|
|
3982
3982
|
query = value.wrap(value.baseQuery.clone())._jsonAgg(value.query.select[0]);
|
|
3983
3983
|
value.query.coalesceValue = orchidCore.raw("'[]'");
|
|
3984
3984
|
} else {
|
|
3985
|
+
if ((returnType === "value" || returnType === "valueOrThrow") && value.query.select) {
|
|
3986
|
+
if (typeof value.query.select[0] === "string") {
|
|
3987
|
+
value.query.select[0] = {
|
|
3988
|
+
selectAs: { r: value.query.select[0] }
|
|
3989
|
+
};
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3985
3992
|
query = value;
|
|
3986
3993
|
}
|
|
3987
3994
|
_joinLateral(q, "LEFT JOIN", query, (q2) => q2, key);
|