@nextage/nx-frame-be 1.0.50 → 1.0.51

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.
@@ -85,11 +85,10 @@ export declare class BaseModel<TAttrs, TDoc extends BaseMongoDoc, TMongoModel ex
85
85
  aggregateNativeFiltered(pipeline: mongoose.PipelineStage[], params: FilterParams | undefined, context: NxContext): Promise<mongoose.mongo.AggregationCursor<any> | null>;
86
86
  /**
87
87
  *
88
- * @param {*} pipeline
89
- * @param {*} params
90
- * @param {*} context
88
+ * @param pipeline
89
+ * @param options
91
90
  */
92
- aggregateNative(pipeline: mongoose.PipelineStage[]): mongoose.mongo.AggregationCursor<any>;
91
+ aggregateNative(pipeline: mongoose.PipelineStage[], options?: mongoose.mongo.AggregateOptions): mongoose.mongo.AggregationCursor<any>;
93
92
  /**
94
93
  * Simple Find wrapper
95
94
  * @param {*} params
@@ -175,12 +175,11 @@ class BaseModel extends events_1.EventEmitter {
175
175
  }
176
176
  /**
177
177
  *
178
- * @param {*} pipeline
179
- * @param {*} params
180
- * @param {*} context
178
+ * @param pipeline
179
+ * @param options
181
180
  */
182
- aggregateNative(pipeline) {
183
- return this.mgModel.collection.aggregate(pipeline, { allowDiskUse: true });
181
+ aggregateNative(pipeline, options = {}) {
182
+ return this.mgModel.collection.aggregate(pipeline, Object.assign({ allowDiskUse: true }, options));
184
183
  }
185
184
  /**
186
185
  * Simple Find wrapper
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextage/nx-frame-be",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",