pqb 0.11.14 → 0.11.15

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 CHANGED
@@ -3979,7 +3979,7 @@ const processSelectArg = (q, as, arg, columnAs) => {
3979
3979
  query = value.json(false);
3980
3980
  value.query.coalesceValue = orchidCore.raw("'[]'");
3981
3981
  } else if (returnType === "pluck") {
3982
- query = value.jsonAgg(value.query.select[0]);
3982
+ query = value.wrap(value.baseQuery.clone())._jsonAgg(value.query.select[0]);
3983
3983
  value.query.coalesceValue = orchidCore.raw("'[]'");
3984
3984
  } else {
3985
3985
  query = value;