File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,8 @@ export class ExplainTool extends MongoDBToolBase {
5353 let result : Document ;
5454 switch ( method . name ) {
5555 case "aggregate" : {
56- const { pipeline, limit } = method . arguments ;
57- result = await provider
58- . aggregate ( database , collection , pipeline )
59- . limit ( limit )
60- . explain ( ExplainTool . defaultVerbosity ) ;
56+ const { pipeline } = method . arguments ;
57+ result = await provider . aggregate ( database , collection , pipeline ) . explain ( ExplainTool . defaultVerbosity ) ;
6158 break ;
6259 }
6360 case "find" : {
Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ export class AggregateTool extends MongoDBToolBase {
2121 database,
2222 collection,
2323 pipeline,
24- limit,
2524 } : ToolArgs < typeof this . argsShape > ) : Promise < CallToolResult > {
2625 const provider = this . ensureConnected ( ) ;
27- const documents = await provider . aggregate ( database , collection , pipeline ) . limit ( limit ) . toArray ( ) ;
26+ const documents = await provider . aggregate ( database , collection , pipeline ) . toArray ( ) ;
2827
2928 const content : Array < { text : string ; type : "text" } > = [
3029 {
You can’t perform that action at this time.
0 commit comments