drapcode-utility 1.7.6 → 1.7.7

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.
@@ -167,7 +167,7 @@ var queryParser = function (collectionName, query, constants, externalParams, cu
167
167
  }
168
168
  console.log("==> aggregateQuery", aggregateQuery);
169
169
  console.log("==> aggregateQuery", JSON.stringify(aggregateQuery));
170
- queryStr = ".aggregate(".concat(JSON.stringify(aggregateQuery), ", { collation: { locale: \"en\" } })");
170
+ queryStr = ".aggregate(".concat(JSON.stringify(aggregateQuery), ", { collation: { locale: \"en\" }, allowDiskUse: true })");
171
171
  str = "req.db.collection('".concat(collectionName, "')").concat(queryStr);
172
172
  str += ".toArray()";
173
173
  return [2 /*return*/, str];
@@ -256,7 +256,7 @@ var queryParserNew = function (collectionName, query, constants, externalParams,
256
256
  if (finder != "COUNT" && limit) {
257
257
  aggregateQuery.push({ $skip: +offset }, { $limit: +limit });
258
258
  }
259
- queryStr = ".aggregate(".concat(JSON.stringify(aggregateQuery), ", { collation: { locale: \"en\" } })");
259
+ queryStr = ".aggregate(".concat(JSON.stringify(aggregateQuery), ", { collation: { locale: \"en\" }, allowDiskUse: true })");
260
260
  str = "req.db.collection('".concat(collectionName, "')").concat(queryStr);
261
261
  str += ".toArray()";
262
262
  return [2 /*return*/, str];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drapcode-utility",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",